From 457e58530072bd3b35d9d889a203c4c8c35b812e Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 12 Aug 2014 16:56:21 -0700 Subject: [PATCH] New: Progress bar will be yellow if series is not monitored, but epsiodes are missing --- src/UI/Content/legend.less | 15 +-------------- src/UI/Handlebars/Helpers/Episode.js | 6 +++++- src/UI/Series/Index/FooterViewTemplate.html | 7 ++++--- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/src/UI/Content/legend.less b/src/UI/Content/legend.less index a31a0928b..2335acd30 100644 --- a/src/UI/Content/legend.less +++ b/src/UI/Content/legend.less @@ -29,17 +29,4 @@ } } } - - .progress-primary { - #gradient > .vertical(#149bdf, #0480be); - .transition(width .6s ease); - } - - .progress-success { - #gradient > .vertical(#62c462, #57a957); - } - - .progress-danger { - #gradient > .vertical(#ee5f5b, #c43c35); - } -} \ No newline at end of file +} diff --git a/src/UI/Handlebars/Helpers/Episode.js b/src/UI/Handlebars/Helpers/Episode.js index 9e277a50d..a24b351f6 100644 --- a/src/UI/Handlebars/Helpers/Episode.js +++ b/src/UI/Handlebars/Helpers/Episode.js @@ -54,6 +54,10 @@ define( return 'progress-bar-success'; } - return 'progress-bar-danger'; + if (this.monitored) { + return 'progress-bar-danger'; + } + + return 'progress-bar-warning'; }); }); diff --git a/src/UI/Series/Index/FooterViewTemplate.html b/src/UI/Series/Index/FooterViewTemplate.html index ea0da0473..bcf1ab35c 100644 --- a/src/UI/Series/Index/FooterViewTemplate.html +++ b/src/UI/Series/Index/FooterViewTemplate.html @@ -1,9 +1,10 @@ 
    -
  • Continuing (All Episodes downloaded)
  • -
  • Ended (All Episodes downloaded)
  • -
  • Missing Episodes
  • +
  • Continuing (All episodes downloaded)
  • +
  • Ended (All episodes downloaded)
  • +
  • Missing Episodes (Series monitored)
  • +
  • Missing Episodes (Series not monitored)