mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-26 22:46:53 -04:00
Merge branch 'develop' into feature/release-dates
This commit is contained in:
@@ -127,8 +127,40 @@ Handlebars.registerHelper('GetBannerStatus', function() {
|
||||
else if (!monitored) {
|
||||
return new Handlebars.SafeString('<div class="announced-banner"><i class="icon-sonarr-series-unmonitored grid-icon" title=""></i> Not Monitored</div>');
|
||||
}
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('DownloadedStatusColor', function() {
|
||||
if (!this.monitored) {
|
||||
if (this.downloaded) {
|
||||
return "default";
|
||||
}
|
||||
return "warning";
|
||||
}
|
||||
|
||||
if (this.downloaded) {
|
||||
return "success";
|
||||
}
|
||||
|
||||
if (this.status != "released") {
|
||||
return "primary";
|
||||
}
|
||||
|
||||
return "danger";
|
||||
})
|
||||
|
||||
Handlebars.registerHelper('DownloadedStatus', function() {
|
||||
|
||||
if (this.downloaded) {
|
||||
return "Downloaded";
|
||||
}
|
||||
if (!this.monitored) {
|
||||
return "Not Monitored";
|
||||
}
|
||||
|
||||
|
||||
return "Missing";
|
||||
});
|
||||
|
||||
|
||||
Handlebars.registerHelper('inCinemas', function() {
|
||||
var monthNames = ["January", "February", "March", "April", "May", "June",
|
||||
|
||||
Reference in New Issue
Block a user