mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 12:59:42 -07:00
Fix plural seasons in recently added
This commit is contained in:
parent
f24f4a4250
commit
687672e9c1
1 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ DOCUMENTATION :: END
|
||||||
|
|
||||||
% if data != None:
|
% if data != None:
|
||||||
<%
|
<%
|
||||||
from plexpy.helpers import page
|
from plexpy.helpers import cast_to_int, page
|
||||||
%>
|
%>
|
||||||
% if data:
|
% if data:
|
||||||
<div class="dashboard-recent-media-row">
|
<div class="dashboard-recent-media-row">
|
||||||
|
@ -87,7 +87,7 @@ DOCUMENTATION :: END
|
||||||
<a href="${page('info', item['rating_key'])}" title="${item['title']}">${item['title']}</a>
|
<a href="${page('info', item['rating_key'])}" title="${item['title']}">${item['title']}</a>
|
||||||
</h3>
|
</h3>
|
||||||
<h3 class="text-muted">
|
<h3 class="text-muted">
|
||||||
${item['child_count']} Seasons
|
${item['child_count']} Season${'s' if cast_to_int(item['child_count']) > 1 else ''}
|
||||||
</h3>
|
</h3>
|
||||||
<h3 class="text-muted"> </h3>
|
<h3 class="text-muted"> </h3>
|
||||||
</div>
|
</div>
|
||||||
|
@ -151,7 +151,7 @@ DOCUMENTATION :: END
|
||||||
<a href="${page('info', item['rating_key'])}" title="Episode ${item['media_index']}">E${item['media_index']}</a>
|
<a href="${page('info', item['rating_key'])}" title="Episode ${item['media_index']}">E${item['media_index']}</a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
% elif item['media_type'] == 'album':
|
% elif item['media_type'] == 'album':
|
||||||
<a href="${page('info', item['rating_key'])}" title="${item['parent_title']}">
|
<a href="${page('info', item['rating_key'])}" title="${item['parent_title']}">
|
||||||
<div class="dashboard-recent-media-cover">
|
<div class="dashboard-recent-media-cover">
|
||||||
<div class="dashboard-recent-media-cover-face" style="background-image: url(${page('pms_image_proxy', item['thumb'], item['rating_key'], 300, 300, fallback='cover')});">
|
<div class="dashboard-recent-media-cover-face" style="background-image: url(${page('pms_image_proxy', item['thumb'], item['rating_key'], 300, 300, fallback='cover')});">
|
||||||
|
@ -177,7 +177,7 @@ DOCUMENTATION :: END
|
||||||
</h3>
|
</h3>
|
||||||
<h3 class="text-muted"> </h3>
|
<h3 class="text-muted"> </h3>
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
</li>
|
</li>
|
||||||
</div>
|
</div>
|
||||||
% endfor
|
% endfor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue