From f845ec24a4ae34c7449ba4ff183ae6770629aaec Mon Sep 17 00:00:00 2001 From: JackDandy Date: Wed, 15 Oct 2014 16:45:55 +0100 Subject: [PATCH] Update Calender View on Coming Episodes Page. Note: these updates are a bit hacky and will be cleaned up when new CSS arrives. Tweak display of show cards. Display show time based on General settings ... Date and Time. Add hover over showtitle incase card image is non-descriptive. Add text to columns where there are no shows for this day. --- .../interfaces/default/comingEpisodes.tmpl | 38 +++++++++++++------ 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/gui/slick/interfaces/default/comingEpisodes.tmpl b/gui/slick/interfaces/default/comingEpisodes.tmpl index a0df614c..7a23ea9f 100644 --- a/gui/slick/interfaces/default/comingEpisodes.tmpl +++ b/gui/slick/interfaces/default/comingEpisodes.tmpl @@ -24,11 +24,13 @@
+#if $layout != 'calendar': Key: Missed Current Future Distant +#end if Subscribe @@ -449,29 +451,43 @@ #for $day in $dates - +
- + #set $day_has_show = False #for $cur_result in $sql_results: #set $cur_indexer = int($cur_result["indexer"]) #set $runtime = $cur_result["runtime"] #set $airday = $cur_result["localtime"].date() #if $airday == $day: - + #set $day_has_show = True + #set $airtime = $sbdatetime.sbdatetime.fromtimestamp($time.mktime($cur_result["localtime"].timetuple())).sbftime().decode($sickbeard.SYS_ENCODING) + #if $sickbeard.TRIM_ZERO: + #set $airtime = re.sub(r"0(\d:\d\d)", r"\1", $airtime, 0, re.IGNORECASE | re.MULTILINE) + #end if + - + #end if - - + #end for + #if not $day_has_show: + + #end if
$day.strftime("%A").decode($sickbeard.SYS_ENCODING).capitalize()
- -
$cur_result["localtime"].strftime("%H:%M") on $cur_result["network"] - #set $episodestring = "%sx%s %s" % ($cur_result["season"], $cur_result["episode"], $cur_result["name"]) -
<%="S%02i" % int(cur_result["season"])+"E%02i" % int(cur_result["episode"]) %> - $cur_result["name"] -
+
+ +
+
+ + ${airtime} on $cur_result["network"] + + + <%= "S%02i" % int(cur_result["season"]) + "E%02i" % int(cur_result["episode"]) %> - $cur_result["name"] + +
+
No shows for this day
#end for