mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Merge pull request #71 from JackDandy/RemoveOldUICodeForComingEps
Remove redundant Coming Eps template code used in the old UI.
This commit is contained in:
commit
2c248c8af1
2 changed files with 1 additions and 19 deletions
|
@ -6,6 +6,7 @@
|
|||
* Add ability to auto focus Search Show box on Home page and control this option via General Config/Interface
|
||||
* Add TVRage network name standardization
|
||||
* Change some provider images. Add a few new images
|
||||
* Remove redundant Coming Eps template code used in the old UI
|
||||
|
||||
[develop changelog]
|
||||
|
||||
|
|
|
@ -425,25 +425,6 @@ class MainHandler(RequestHandler):
|
|||
sql_results.sort(sorts[sickbeard.COMING_EPS_SORT])
|
||||
|
||||
t = PageTemplate(headers=self.request.headers, file="comingEpisodes.tmpl")
|
||||
# paused_item = { 'title': '', 'path': 'toggleComingEpsDisplayPaused' }
|
||||
# paused_item['title'] = 'Hide Paused' if sickbeard.COMING_EPS_DISPLAY_PAUSED else 'Show Paused'
|
||||
paused_item = {'title': 'View Paused:', 'path': {'': ''}}
|
||||
paused_item['path'] = {'Hide': 'toggleComingEpsDisplayPaused'} if sickbeard.COMING_EPS_DISPLAY_PAUSED else {
|
||||
'Show': 'toggleComingEpsDisplayPaused'}
|
||||
t.submenu = [
|
||||
{'title': 'Sort by:', 'path': {'Date': 'setComingEpsSort/?sort=date',
|
||||
'Show': 'setComingEpsSort/?sort=show',
|
||||
'Network': 'setComingEpsSort/?sort=network',
|
||||
}},
|
||||
|
||||
{'title': 'Layout:', 'path': {'Banner': 'setComingEpsLayout/?layout=banner',
|
||||
'Poster': 'setComingEpsLayout/?layout=poster',
|
||||
'List': 'setComingEpsLayout/?layout=list',
|
||||
'Calendar': 'setComingEpsLayout/?layout=calendar',
|
||||
}},
|
||||
paused_item,
|
||||
]
|
||||
|
||||
t.next_week = datetime.datetime.combine(next_week_dt, datetime.time(tzinfo=network_timezones.sb_timezone))
|
||||
t.today = datetime.datetime.now(network_timezones.sb_timezone)
|
||||
t.sql_results = sql_results
|
||||
|
|
Loading…
Reference in a new issue