From 48559cf9644db7f1c1e3e7e6719d4cd603a72582 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Tue, 10 Jan 2017 17:36:04 +0100 Subject: [PATCH] Updated legend with number of movies --- src/UI/Movies/Index/FooterViewTemplate.hbs | 10 +++++----- src/UI/Movies/Index/MoviesIndexLayout.js | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/UI/Movies/Index/FooterViewTemplate.hbs b/src/UI/Movies/Index/FooterViewTemplate.hbs index 0718765c8..3a1c75b35 100644 --- a/src/UI/Movies/Index/FooterViewTemplate.hbs +++ b/src/UI/Movies/Index/FooterViewTemplate.hbs @@ -11,14 +11,14 @@
-
Series
+
Movies
{{series}}
-
Ended
-
{{ended}}
+
Released
+
{{released}}
-
Continuing
-
{{continuing}}
+
Announced
+
{{announced}}
diff --git a/src/UI/Movies/Index/MoviesIndexLayout.js b/src/UI/Movies/Index/MoviesIndexLayout.js index 5de35590f..3b12a36e0 100644 --- a/src/UI/Movies/Index/MoviesIndexLayout.js +++ b/src/UI/Movies/Index/MoviesIndexLayout.js @@ -281,18 +281,18 @@ module.exports = Marionette.Layout.extend({ var series = MoviesCollection.models.length; var episodes = 0; var episodeFiles = 0; - var ended = 0; - var continuing = 0; + var announced = 0; + var released = 0; var monitored = 0; _.each(MoviesCollection.models, function(model) { episodes += model.get('episodeCount'); episodeFiles += model.get('episodeFileCount'); - if (model.get('status').toLowerCase() === 'ended') { - ended++; + if (model.get('status').toLowerCase() === 'released') { + released++; } else { - continuing++; + announced++; } if (model.get('monitored')) { @@ -302,9 +302,9 @@ module.exports = Marionette.Layout.extend({ footerModel.set({ series : series, - ended : ended, - continuing : continuing, - monitored : monitored, + released : released, + announced : announced, + monitored : monitored, unmonitored : series - monitored, episodes : episodes, episodeFiles : episodeFiles