diff --git a/src/UI/Handlebars/Helpers/Series.js b/src/UI/Handlebars/Helpers/Series.js index 2e8611e56..fbb3a23fc 100644 --- a/src/UI/Handlebars/Helpers/Series.js +++ b/src/UI/Handlebars/Helpers/Series.js @@ -74,20 +74,22 @@ Handlebars.registerHelper('GetStatus', function() { var timeSince = new Date().getTime() - date.getTime(); var numOfMonths = timeSince / 1000 / 60 / 60 / 24 / 30; - if (status === 'released') { - return new Handlebars.SafeString(' Released'); + + if (status === "announced") { + return new Handlebars.SafeString(' Announced'); + } + + if (numOfMonths < 3) { + + return new Handlebars.SafeString(' In Cinemas'); } if (numOfMonths > 3) { return new Handlebars.SafeString(' Released');//TODO: Update for PreDB.me } - if (numOfMonths < 3) { - return new Handlebars.SafeString(' In Cinemas'); - } - - if (status === "announced") { - return new Handlebars.SafeString(' Announced'); + if (status === 'released') { + return new Handlebars.SafeString(' Released'); } else if (!monitored) { @@ -103,6 +105,14 @@ Handlebars.registerHelper('GetBannerStatus', function() { var timeSince = new Date().getTime() - date.getTime(); var numOfMonths = timeSince / 1000 / 60 / 60 / 24 / 30; + if (status === "announced") { + return new Handlebars.SafeString('
 Announced
'); + } + + if (numOfMonths < 3) { + return new Handlebars.SafeString('
 In Cinemas
'); + } + if (status === 'released') { return new Handlebars.SafeString('
 Released
'); } @@ -111,13 +121,8 @@ Handlebars.registerHelper('GetBannerStatus', function() { return new Handlebars.SafeString('
 Released
');//TODO: Update for PreDB.me } - if (numOfMonths < 3) { - return new Handlebars.SafeString('
 In Cinemas
'); - } - if (status === "announced") { - return new Handlebars.SafeString('
 Announced
'); - } + else if (!monitored) { return new Handlebars.SafeString('
 Not Monitored
');