New: Unaired premieres on calendar are displayed in pink

pull/4/head
Mark McDowall 10 years ago
parent 1a2cc0a3d1
commit 2d09fdba15

@ -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>

@ -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';
} }

@ -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;

@ -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})';

@ -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';
} }

Loading…
Cancel
Save