1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-30 19:56:54 +00:00

New: Unaired premieres on calendar are displayed in pink

This commit is contained in:
Mark McDowall 2014-08-23 10:43:25 -07:00
parent 1a2cc0a3d1
commit 2d09fdba15
5 changed files with 23 additions and 4 deletions

View file

@ -14,6 +14,7 @@
<div id="x-calendar" class="calendar"/> <div id="x-calendar" class="calendar"/>
<div class="legend calendar"> <div class="legend calendar">
<ul class='legend-labels'> <ul class='legend-labels'>
<li><span class="pink" title="Premiere episode hasn't aired yet"></span>Unaired Premiere</li>
<li><span class="primary" title="Episode hasn't aired yet"></span>Unaired</li> <li><span class="primary" title="Episode hasn't aired yet"></span>Unaired</li>
<li><span class="warning" title="Episode is currently airing"></span>On Air</li> <li><span class="warning" title="Episode is currently airing"></span>On Air</li>
<li><span class="purple" title="Episode is currently downloading"></span>Downloading</li> <li><span class="purple" title="Episode is currently downloading"></span>Downloading</li>

View file

@ -165,6 +165,10 @@ define(
statusLevel = 'danger'; statusLevel = 'danger';
} }
else if (element.get('episodeNumber') === 1) {
statusLevel = 'pink';
}
if (end.isBefore(currentTime.startOf('day'))) { if (end.isBefore(currentTime.startOf('day'))) {
statusLevel += ' past'; statusLevel += ' past';
} }

View file

@ -111,6 +111,10 @@
border-color : @nzbdronePurple; border-color : @nzbdronePurple;
} }
.pink {
border-color : @nzbdronePink;
}
.episode-title { .episode-title {
.btn-link; .btn-link;
.text-overflow; .text-overflow;
@ -167,6 +171,11 @@
background-color : @nzbdronePurple; background-color : @nzbdronePurple;
} }
.pink {
border-color : @nzbdronePink;
background-color : @nzbdronePink;
}
.chart { .chart {
margin-top : 2px; margin-top : 2px;
margin-right: 2px; margin-right: 2px;

View file

@ -1,7 +1,8 @@
@nzbdroneRed: #c4273c; @nzbdroneRed : #c4273c;
@purple: #7a43b6; @purple : #7a43b6;
@nzbdronePurple: #7932ea; @nzbdronePurple : #7932ea;
@droneTeal: #35c5f4; @nzbdronePink : #F43565;
@droneTeal : #35c5f4;
@screen-tn-max: @screen-xs-min - 1; @screen-tn-max: @screen-xs-min - 1;
@tn: ~'(max-width: @{screen-tn-max})'; @tn: ~'(max-width: @{screen-tn-max})';

View file

@ -37,6 +37,10 @@ define(
return 'purple'; return 'purple';
} }
if (this.episodeNumber === 1) {
return 'pink';
}
if (currentTime.isAfter(start) && currentTime.isBefore(end)) { if (currentTime.isAfter(start) && currentTime.isBefore(end)) {
return 'warning'; return 'warning';
} }