Fix plural seasons in recently added

This commit is contained in:
JonnyWong16 2020-08-09 14:10:53 -07:00
commit 687672e9c1
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -32,7 +32,7 @@ DOCUMENTATION :: END
% if data != None:
<%
from plexpy.helpers import page
from plexpy.helpers import cast_to_int, page
%>
% if data:
<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>
</h3>
<h3 class="text-muted">
${item['child_count']} Seasons
${item['child_count']} Season${'s' if cast_to_int(item['child_count']) > 1 else ''}
</h3>
<h3 class="text-muted">&nbsp;</h3>
</div>
@ -151,7 +151,7 @@ DOCUMENTATION :: END
<a href="${page('info', item['rating_key'])}" title="Episode ${item['media_index']}">E${item['media_index']}</a>
</h3>
</div>
% elif item['media_type'] == 'album':
% elif item['media_type'] == 'album':
<a href="${page('info', item['rating_key'])}" title="${item['parent_title']}">
<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')});">
@ -177,7 +177,7 @@ DOCUMENTATION :: END
</h3>
<h3 class="text-muted">&nbsp;</h3>
</div>
% endif
% endif
</li>
</div>
% endfor