parent
155c82c199
commit
fc572500e4
@ -1,30 +1,29 @@
|
||||
{{#each seasons}}
|
||||
<span class="season label label-default">
|
||||
<span>
|
||||
{{debug}}
|
||||
<span class="season">
|
||||
<span class="label">
|
||||
<span class="x-season-monitored season-monitored" title="Toggle season monitored status" data-season-number="{{seasonNumber}}">
|
||||
<i class="x-season-monitored-icon {{#if monitored}}icon-sonarr-monitored{{else}}icon-sonarr-unmonitored{{/if}}"/>
|
||||
</span>
|
||||
</span>
|
||||
{{#if_eq seasonNumber compare="0"}}
|
||||
<span class="season-number">Specials</span>
|
||||
{{else}}
|
||||
<span class="season-number">S{{Pad2 seasonNumber}}</span>
|
||||
{{/if_eq}}
|
||||
|
||||
<!--{{#if_eq statistics.episodeCount compare=0}}-->
|
||||
<!--{{#if monitored}}-->
|
||||
<!--<span class="badge badge-primary season-status" title="No aired episodes"> </span>-->
|
||||
<!--{{else}}-->
|
||||
<!--<span class="badge badge-warning season-status" title="Season is not monitored"> </span>-->
|
||||
<!--{{/if}}-->
|
||||
<!--{{else}}-->
|
||||
<!--{{#with statistics}}-->
|
||||
<!--{{#if_eq percentOfEpisodes compare=100}}-->
|
||||
<!--<span class="badge badge-success season-status" title="{{episodeFileCount}}/{{episodeCount}} episodes downloaded">{{episodeFileCount}} / {{episodeCount}}</span>-->
|
||||
<!--{{else}}-->
|
||||
<!--<span class="badge badge-danger season-status" title="{{episodeFileCount}}/{{episodeCount}} episodes downloaded">{{episodeFileCount}} / {{episodeCount}}</span>-->
|
||||
<!--{{/if_eq}}-->
|
||||
<!--{{/with}}-->
|
||||
<!--{{/if_eq}}-->
|
||||
</span><span class="label">
|
||||
{{#with statistics}}
|
||||
{{#if_eq totalEpisodeCount compare=0}}
|
||||
<span class="season-status" title="No aired episodes"> </span>
|
||||
{{else}}
|
||||
{{#if_eq percentOfEpisodes compare=100}}
|
||||
<span class="season-status" title="{{episodeFileCount}}/{{totalEpisodeCount}} episodes downloaded">{{episodeFileCount}}/{{totalEpisodeCount}}</span>
|
||||
{{else}}
|
||||
<span class="season-status" title="{{episodeFileCount}}/{{totalEpisodeCount}} episodes downloaded">{{episodeFileCount}}/{{totalEpisodeCount}}</span>
|
||||
{{/if_eq}}
|
||||
{{/if_eq}}
|
||||
{{else}}
|
||||
<span class="season-status" title="No aired episodes"> </span>
|
||||
{{/with}}
|
||||
</span>
|
||||
</span>
|
||||
{{/each}}
|
@ -1,21 +1,49 @@
|
||||
@import "../Content/badges.less";
|
||||
@import "../Shared/Styles/clickable.less";
|
||||
|
||||
.season {
|
||||
display : inline-block;
|
||||
font-size : 14px;
|
||||
display : inline-block;
|
||||
margin-bottom : 4px;
|
||||
background-color: #eee;
|
||||
border: 1px solid #999;
|
||||
color: #999;
|
||||
|
||||
.label {
|
||||
.badge-inverse();
|
||||
|
||||
display : inline-block;
|
||||
padding : 4px;
|
||||
|
||||
font-size : 14px;
|
||||
}
|
||||
|
||||
.label:first-child {
|
||||
border-right : 0px;
|
||||
border-top-right-radius : 0.0em;
|
||||
border-bottom-right-radius : 0.0em;
|
||||
color : #777;
|
||||
background-color : #eee;
|
||||
}
|
||||
|
||||
.label:last-child {
|
||||
border-left : 0px;
|
||||
border-top-left-radius : 0.0em;
|
||||
border-bottom-left-radius : 0.0em;
|
||||
color : #999;
|
||||
background-color : #f7f7f7;
|
||||
}
|
||||
|
||||
.season-monitored {
|
||||
display : inline-block;
|
||||
width : 16px;
|
||||
width : 16px;
|
||||
|
||||
.clickable();
|
||||
i {
|
||||
.clickable();
|
||||
}
|
||||
}
|
||||
|
||||
.season-number {
|
||||
font-size : 12px;
|
||||
}
|
||||
|
||||
.season-status {
|
||||
display : inline-block;
|
||||
vertical-align : baseline !important;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue