diff --git a/CHANGES.md b/CHANGES.md
index 34c17dd4..cfd99641 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -7,6 +7,7 @@
* Add a provider error table to page Manage/Media Search
* Add failure handling, skip provider for x hour(s) depending on count of failures
* Add detection of Too Many Requests (Supporting providers UC and BTN)
+* Add footer icon button to switch time layouts
[develop changelog]
diff --git a/gui/slick/css/style.css b/gui/slick/css/style.css
index 0ab227d7..3542c285 100644
--- a/gui/slick/css/style.css
+++ b/gui/slick/css/style.css
@@ -639,6 +639,27 @@ inc_bottom.tmpl
display:inline
}
+.footer .icon-glyph{
+ opacity:0.4;filter:alpha(opacity=40);
+ float:none;
+ display:inline-block;
+ margin:0 0 -2px 0;
+ height:12px;
+ width:14px
+}
+.footer .icon-glyph:hover{
+ opacity:0.6;filter:alpha(opacity=60);
+ cursor:pointer
+}
+.footer .icon-glyph.timeleft,
+.footer .icon-glyph.time:hover{
+ background-position:-48px -25px
+}
+.footer .icon-glyph.time,
+.footer .icon-glyph.timeleft:hover{
+ background-position:-192px -121px
+}
+
/* =======================================================================
inc_rootDirs.tmpl
========================================================================== */
diff --git a/gui/slick/interfaces/default/inc_bottom.tmpl b/gui/slick/interfaces/default/inc_bottom.tmpl
index 1f366b6a..36acea1d 100644
--- a/gui/slick/interfaces/default/inc_bottom.tmpl
+++ b/gui/slick/interfaces/default/inc_bottom.tmpl
@@ -4,6 +4,7 @@
#from sickbeard import db, sbdatetime
#from sickbeard.common import *
#from sickbeard.helpers import df
+#from sickbeard.webserve import MainHandler
<% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp#
<% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp#
##
@@ -54,14 +55,6 @@
#set $localheader = ''
#end try
<%
-try:
- next_backlog_timeleft = str(sickbeard.backlogSearchScheduler.next_backlog_timeleft()).split('.')[0]
-except AttributeError:
- next_backlog_timeleft = 'soon'
-try:
- recent_search_timeleft = str(sickbeard.recentSearchScheduler.timeLeft()).split('.')[0]
-except AttributeError:
- recent_search_timeleft = 'soon'
diskfree, min_output = df()
if min_output:
avail = ', '.join(['%s ' % (drive, free) for (drive, free) in diskfree])
@@ -76,8 +69,15 @@ if min_output:
% (localRoot, str(ep_snatched))
)[0 < ep_snatched]
%> / episodes downloaded $ep_percentage
- | recent search:
- | backlog search:
+#for i, event in enumerate($MainHandler.getFooterTime(ajax_layout=False))
+ #for k, v in event.items()
+ #set info = re.findall('(.*)_(timeleft|time)', k)[0]
+ #if not i
+
+ #end if
+ | $info[0].replace('-', ' '):
+ #end for
+#end for
#if diskfree
#if min_output
free space $avail
@@ -103,6 +103,25 @@ if min_output:
#end if
#end if
+