From 69a0e859abd73f6ce628a55e822943490d25ac10 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 11 Nov 2014 15:30:33 +0000 Subject: [PATCH] Fix missing header and text in poster layout when network is none on coming episodes page. Fix missing header and "on " when network is none and Layout "Poster" with Sort By "Network" on coming episodes page. --- CHANGES.md | 3 ++- gui/slick/interfaces/default/comingEpisodes.tmpl | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 115da9a9..07db71ca 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,4 @@ -### 0.x.x (2014-11-10 xx:xx:xx UTC) +### 0.x.x (2014-11-11 xx:xx:xx UTC) * Add Bootstrap for UI features * Change UI to resize fluidly on different display sizes, fixes the issue where top menu items would disappear on smaller screens @@ -53,6 +53,7 @@ * Fix missing url for kickasstorrents in config_providers * Fix post processing when using tvrage indexer and mediabrowser metadata generation * Change reporting failed network_timezones.txt updates from an error to a warning +* Fix missing header and "on " when network is none and Layout "Poster" with Sort By "Network" on coming episodes page. [develop changelog] * Change 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 f95a4cca..e278593b 100644 --- a/gui/slick/interfaces/default/comingEpisodes.tmpl +++ b/gui/slick/interfaces/default/comingEpisodes.tmpl @@ -322,10 +322,11 @@ #set $runtime = $cur_result['runtime'] #if 'network' == $sort: - #if $cur_result['network'] and $cur_segment != $cur_result['network']: + #set $show_network = $cur_result['network'] if $cur_result['network'] else 'no network' + #if $cur_segment != $show_network:
-

$cur_result['network']

- #set $cur_segment = $cur_result['network'] +

$show_network

+ #set $cur_segment = $cur_result['network'] #end if #set $cur_ep_airdate = $cur_result['localtime'].date() @@ -440,7 +441,7 @@
- Airs: $sbdatetime.sbdatetime.sbfdatetime($cur_result['localtime']).decode($sickbeard.SYS_ENCODING) on $cur_result['network'] + Airs: $sbdatetime.sbdatetime.sbfdatetime($cur_result['localtime']).decode($sickbeard.SYS_ENCODING)<%= ('', ' on %s' % str(cur_result['network']))[None is not cur_result['network']] %>