diff --git a/CHANGES.md b/CHANGES.md index d4b36d95fea6c008b1395b6139a2139acfd8af39..5ebe1efa03a551fe12c157595d1b3ac2ac301fde 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -39,6 +39,7 @@ * Fixes changing root dirs on the mass edit page * Add the ability to use trash (or Recycle Bin) for selected actions on General Config/Misc/Send to trash * Add handling for when deleting a show and the show folder no longer exists +* Fix Coming Episodes/Layout Calender/View Paused and tweak its UI text [develop changelog] * Improve display of progress bars in the Downloads columns of the show list page diff --git a/gui/slick/interfaces/default/comingEpisodes.tmpl b/gui/slick/interfaces/default/comingEpisodes.tmpl index edbe66a9b8fe95e51f710fd09111594e9983465c..956066d71005fd8dab943b0f51af022d1f49d22f 100644 --- a/gui/slick/interfaces/default/comingEpisodes.tmpl +++ b/gui/slick/interfaces/default/comingEpisodes.tmpl @@ -46,8 +46,8 @@ <span> View Paused: <select name="viewpaused" class="form-control form-control-inline input-sm" onchange="location = this.options[this.selectedIndex].value;"> - <option value="$sbRoot/toggleComingEpsDisplayPaused" #if $sickbeard.COMING_EPS_DISPLAY_PAUSED == "0" then "selected=\"selected\"" else ""#>Hide</option> - <option value="$sbRoot/toggleComingEpsDisplayPaused" #if $sickbeard.COMING_EPS_DISPLAY_PAUSED == "1" then "selected=\"selected\"" else ""#>Show</option> + <option value="$sbRoot/toggleComingEpsDisplayPaused"<%= (' selected="selected"', '')[True == sickbeard.COMING_EPS_DISPLAY_PAUSED] %>>Hidden</option> + <option value="$sbRoot/toggleComingEpsDisplayPaused"<%= ('', ' selected="selected"')[True == sickbeard.COMING_EPS_DISPLAY_PAUSED] %>>Shown</option> </select> </span> </div> @@ -487,6 +487,10 @@ <tbody> #set $day_has_show = False #for $cur_result in $sql_results: + #if int($cur_result['paused']) and not $sickbeard.COMING_EPS_DISPLAY_PAUSED: + #continue + #end if + #set $cur_indexer = int($cur_result["indexer"]) #set $runtime = $cur_result["runtime"] #set $airday = $cur_result["localtime"].date()