mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
36 lines
No EOL
1.8 KiB
HTML
36 lines
No EOL
1.8 KiB
HTML
% if recently_added != None:
|
|
<div class="dashboard-recent-media-row">
|
|
<ul class="dashboard-recent-media">
|
|
% for item in recently_added:
|
|
<div class="dashboard-recent-media-instance">
|
|
<li>
|
|
<div class="poster">
|
|
<div class="poster-face">
|
|
<a href="info?rating_key=${item['ratingKey']}">
|
|
% if item['thumb'] != '':
|
|
<img src="pms_image_proxy?img=${item['thumb']}&width=153&height=225" class="poster-face">
|
|
% else:
|
|
<img src="interfaces/default/images/poster.png" class="poster-face">
|
|
% endif
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="dashboard-recent-media-metacontainer">
|
|
% if item['type'] == 'season':
|
|
<h3>${item['title']}</h3>
|
|
% elif item['type'] == 'movie':
|
|
<h3>${item['title']} (${item['year']})</h3>
|
|
% endif
|
|
<div class="muted" id="addedAt-${item['ratingKey']}">${item['addedAt']}</div>
|
|
</div>
|
|
</li>
|
|
</div>
|
|
<script>
|
|
$('#addedAt-${item['ratingKey']}').html('Added ' + moment(${item['addedAt']}, "X").fromNow())
|
|
</script>
|
|
% endfor
|
|
</ul>
|
|
</div>
|
|
% else:
|
|
<div class="muted">There was an error communicating with your Plex Server. Please check your <a href="config">settings</a>.</div><br>
|
|
% endif |