diff options
author | morpheus65535 <[email protected]> | 2018-04-24 20:48:23 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-04-24 20:48:23 -0400 |
commit | 05a7edbbfbfe38234995e9888216b71cd8084dae (patch) | |
tree | 3209586e6fcd347772ebc99a7b5b37a0c4d26ce0 /views | |
parent | 5660abaa3b8434b42e46b5aaba2f1402af6b0723 (diff) | |
download | bazarr-05a7edbbfbfe38234995e9888216b71cd8084dae.tar.gz bazarr-05a7edbbfbfe38234995e9888216b71cd8084dae.zip |
Series progress fine-tuning
Diffstat (limited to 'views')
-rw-r--r-- | views/episodes.tpl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/views/episodes.tpl b/views/episodes.tpl index 3633ef236..029a65bb2 100644 --- a/views/episodes.tpl +++ b/views/episodes.tpl @@ -124,7 +124,17 @@ <div id="fondblanc" class="ui container">
%missing_subs = len([i for i in season if i[6] != "[]"])
%total_subs = len(season)
- <h1 class="ui header">Season {{season[0][2]}}<div class="ui tiny {{!'green' if missing_subs == 0 else 'yellow'}} circular label">{{!total_subs - missing_subs}} / {{total_subs}}</div></h1>
+ %subs_label = ''
+ %if subs_languages is not None:
+ % subs_label = '<div class="ui tiny '
+ % if missing_subs == 0:
+ % subs_label = subs_label + 'green'
+ % else:
+ % subs_label = subs_label + 'yellow'
+ % end
+ % subs_label = subs_label + ' circular label">' + str(total_subs - missing_subs) + ' / ' + str(total_subs) + '</div>'
+ %end
+ <h1 class="ui header">Season {{season[0][2]}}{{!subs_label}}</h1>
<div class="ui accordion">
<div class="title">
<div class="ui one column stackable center aligned page grid">
|