mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Recently added albums now include artist name. Recently watched episodes now include show name.
64 lines
No EOL
2.3 KiB
HTML
64 lines
No EOL
2.3 KiB
HTML
<%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.
|
|
type Returns the type of media. Either 'movie' or 'episode'.
|
|
thumb Returns the location of the item's thumbnail. Use with pms_image_proxy.
|
|
time Returns the last watched time of the media.
|
|
title Returns the name of the movie or episode.
|
|
|
|
== Only if 'type' is 'episode ==
|
|
parent_title Returns the name of the TV Show a season belongs too.
|
|
parent_index Returns the season number.
|
|
index Returns the episode number.
|
|
|
|
== Only if 'type' is 'movie' ==
|
|
year Returns the movie release year.
|
|
|
|
DOCUMENTATION :: END
|
|
</%doc>
|
|
|
|
% if data != None:
|
|
<div class="dashboard-recent-media-row">
|
|
<ul class="dashboard-recent-media list-unstyled">
|
|
% for item in data:
|
|
<div class="dashboard-recent-media-instance">
|
|
<li>
|
|
<a href="info?source=history&item_id=${item['row_id']}">
|
|
<div class="poster">
|
|
<div class="poster-face" style="background-image: url(pms_image_proxy?img=${item['thumb']}&width=300&height=450&fallback=poster);"></div>
|
|
</div>
|
|
<div class="dashboard-recent-media-metacontainer">
|
|
% if item['type'] == 'episode':
|
|
<h3>${item['parent_title']}</h3>
|
|
<h3>${item['title']}</h3>
|
|
<h3>(Season ${item['parent_index']}, Episode ${item['index']})</h3>
|
|
% elif item['type'] == 'movie':
|
|
<h3>${item['title']}</h3>
|
|
<h3>(${item['year']})</h3>
|
|
% endif
|
|
<div class="text-muted" id="time-${item['time']}">${item['time']}</div>
|
|
</div>
|
|
</a>
|
|
</li>
|
|
</div>
|
|
<script>
|
|
$('#time-${item['time']}').html('Watched ' + moment(${item['time']}, "X").fromNow())
|
|
</script>
|
|
% endfor
|
|
</ul>
|
|
</div>
|
|
% else:
|
|
<div class="text-muted">Unable to retrieve data from database. Please check your <a href="settings">settings</a>.
|
|
</div><br>
|
|
% endif |