<%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: user_recently_watched.html Version: 0.1 Variable names: data [array] data[array_index] :: Usable parameters == Global keys == rating_key Returns the unique identifier for the media item. row_id Returns the unique row id for the media item in the database. media_type Returns the type of media. Either 'movie' or 'episode' or 'album'. thumb Returns the location of the item's thumbnail. Use with pms_image_proxy. time Returns the last watched time of the media. user Returns the name of the user that watched the item. title Returns the name of the movie, episode, album. parent_title Returns the name of the artist. grandparent_title Returns the name of the show. media_index Returns the index number of the episode. parent_media_index Returns the index number of the season. year Returns the release year of the movie, episode, or album. DOCUMENTATION :: END % if data:

% for item in data:
- % if item['media_type'] == 'episode' or item['media_type'] == 'movie': % if item['rating_key']: % if item['media_type'] == 'movie': % elif item['media_type'] == 'episode': % endif
  % if _session['user_group'] == 'admin': % endif
  % if item['media_type'] == 'episode':

  ### ${item['grandparent_title']}

  ### ${item['title']}

  ### S${item['parent_media_index']} · E${item['media_index']}

  % elif item['media_type'] == 'movie':

  ### ${item['title']}

  ### ${item['year']}

  ###

  % endif
  % else:

  ### ${item['title']}

  % endif % elif item['media_type'] == 'track': % if item['rating_key']:

  ### ${item['original_title'] or item['grandparent_title']}

  ### ${item['title']}

  ### ${item['parent_title']}

  % else:

  ### ${item['title']}

  % endif % endif
% endfor

% else:
No stats to show.
% endif