1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

New: Unaired premieres on calendar are displayed in light blue

This commit is contained in:
Mark McDowall 2014-08-23 13:05:13 -07:00
parent 59a5b6c030
commit 6bb918d025
4 changed files with 12 additions and 3 deletions

View File

@ -14,7 +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="premiere" 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

@ -166,7 +166,7 @@ define(
} }
else if (element.get('episodeNumber') === 1) { else if (element.get('episodeNumber') === 1) {
statusLevel = 'pink'; statusLevel = 'premiere';
} }
if (end.isBefore(currentTime.startOf('day'))) { if (end.isBefore(currentTime.startOf('day'))) {

View File

@ -115,6 +115,10 @@
border-color : @nzbdronePink; border-color : @nzbdronePink;
} }
.premiere {
border-color : @droneTeal;
}
.episode-title { .episode-title {
.btn-link; .btn-link;
.text-overflow; .text-overflow;
@ -176,6 +180,11 @@
background-color : @nzbdronePink; background-color : @nzbdronePink;
} }
.premiere {
border-color : @droneTeal;
background-color : @droneTeal;
}
.chart { .chart {
margin-top : 2px; margin-top : 2px;
margin-right: 2px; margin-right: 2px;

View File

@ -38,7 +38,7 @@ define(
} }
if (this.episodeNumber === 1) { if (this.episodeNumber === 1) {
return 'pink'; return 'premiere';
} }
if (currentTime.isAfter(start) && currentTime.isBefore(end)) { if (currentTime.isAfter(start) && currentTime.isBefore(end)) {