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