<%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: library_stats.html Version: 0.1 Variable names: data [array] data[array_index] :: Usable parameters data Returns an array containing stat data data[array_index] :: Usable parameters section_name Returns the title of the library. section_type Returns the type of the library. thumb Returns the thumb of the library. count Returns the number of top level items in the library. parent_count Returns the number of parent items in the library. child_count Returns the number of child items in the library. DOCUMENTATION :: END % if data:

% for library in data:

- #### ${library['section_name']}

  % if library['section_type'] == 'movie':

  ##### All Movies

  ### ${library['count']}

  items

  % elif library['section_type'] == 'show':

  ##### All Shows

  ### ${library['count']}

  items

  ##### All Episodes

  ### ${library['child_count']}

  items

  % elif library['section_type'] == 'artist':

  ##### All Artists

  ### ${library['count']}

  items

  ##### All Albums

  ### ${library['parent_count']}

  items

  % elif library['section_type'] == 'photo':

  ##### All Albums

  ### ${library['count']}

  items

  ##### All Photos

  ### ${library['child_count']}

  items

  % endif
  % if library['thumb']:
  % else:
  % endif
% endfor

% else:
No stats to show.
% endif