<%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['type'] Returns the type of the library. Either 'movie', 'show', 'photo', or 'artist'. data['rows'] Returns an array containing stat data data[array_index]['rows'] :: Usable parameters title Returns the title of the library. thumb Returns the thumb of the library. count Returns the number of items in the library. count_type Returns the sorting type for the library == Only if 'type' is 'show' episode_count Return the number of episodes in the library. episode_count_type Return the sorting type for the episodes. == Only if 'type' is 'artist' album_count Return the number of episodes in the library. album_count_type Return the sorting type for the episodes. DOCUMENTATION :: END % if data:

% for library in data:

- #### ${library['rows']['title']}

  ##### ${library['rows']['count_type']}

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

  items

  % if library['type'] == 'show':

  ##### ${library['rows']['episode_count_type']}

  ### ${library['rows']['episode_count']}

  items

  % endif % if library['type'] == 'artist':

  ##### ${library['rows']['album_count_type']}

  ### ${library['rows']['album_count']}

  items

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

% else:
Unable to retrieve data from database. Please check your settings.
% endif