<%doc> USAGE DOCUMENTATION :: PLEASE LEAVE THIS AT THE TOP OF THIS FILE For Mako templating syntax documentation please visit: http://docs.makotemplates.org/en/latest/ Filename: current_activity_header.html Version: 0.1 Variable names: data [string] data :: Usable parameters data Returns the current number of active streams DOCUMENTATION :: END % if data != None: <% s = '(' if data['direct_play']: s += str(data['direct_play']) + ' direct play' + ('s' if data['direct_play'] > 1 else '') + ', ' if data['direct_stream']: s += str(data['direct_stream']) + ' direct stream' + ('s' if data['direct_stream'] > 1 else '') + ', ' if data['transcode']: s += str(data['transcode']) + ' transcode' + ('s' if data['transcode'] > 1 else '') + ', ' s = s.rstrip(', ') s += ')' %> % if data['stream_count'] == '0':

### Activity

% elif data['stream_count'] == '1':

### Activity ${data['stream_count']} stream ${s}

% else:

### Activity ${data['stream_count']} streams ${s}

% endif % else:

### Activity

% endif