Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
6309378c
Commit
6309378c
authored
Oct 21, 2015
by
miigotu
Browse files
Options
Downloads
Plain Diff
Merge pull request #2919 from ROpdebee/develop
Should fix SiCKRAGETV/sickrage-issues/issues/3273
parents
184e91ab
97a323c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gui/slick/views/schedule.mako
+49
-57
49 additions, 57 deletions
gui/slick/views/schedule.mako
with
49 additions
and
57 deletions
gui/slick/views/schedule.mako
+
49
−
57
View file @
6309378c
...
@@ -207,6 +207,12 @@
...
@@ -207,6 +207,12 @@
continue
continue
run_time = cur_result['runtime']
run_time = cur_result['runtime']
cur_ep_airdate = cur_result['localtime'].date()
if run_time:
cur_ep_enddate = cur_result['localtime'] + datetime.timedelta(minutes = run_time)
else:
cur_ep_enddate = cur_result['localtime']
%>
%>
% if 'network' == sort:
% if 'network' == sort:
<% show_network = ('no network', cur_result['network'])[bool(cur_result['network'])] %>
<% show_network = ('no network', cur_result['network'])[bool(cur_result['network'])] %>
...
@@ -216,10 +222,7 @@
...
@@ -216,10 +222,7 @@
<% cur_segment = cur_result['network'] %>
<% cur_segment = cur_result['network'] %>
% endif
% endif
<% cur_ep_airdate = cur_result['localtime'].date() %>
% if run_time:
<% cur_ep_enddate = cur_result['localtime'] + datetime.timedelta(minutes = run_time) %>
% if cur_ep_enddate < today:
% if cur_ep_enddate < today:
<% show_div = 'ep_listing listing-overdue' %>
<% show_div = 'ep_listing listing-overdue' %>
% elif cur_ep_airdate >= next_week.date():
% elif cur_ep_airdate >= next_week.date():
...
@@ -231,13 +234,9 @@
...
@@ -231,13 +234,9 @@
<% show_div = 'ep_listing listing-default' %>
<% show_div = 'ep_listing listing-default' %>
% endif
% endif
% endif
% endif
% endif
% elif 'date' == sort:
<% cur_ep_airdate = cur_result['localtime'].date() %>
% elif 'date' == sort:
% if cur_segment != cur_ep_airdate:
% if cur_segment != cur_ep_airdate:
%if run_time:
<% cur_ep_enddate = cur_result['localtime'] + datetime.timedelta(minutes = run_time) %>
% if cur_ep_enddate < today and cur_ep_airdate != today.date() and not missed_header:
% if cur_ep_enddate < today and cur_ep_airdate != today.date() and not missed_header:
<br /><h2 class="day">Missed</h2>
<br /><h2 class="day">Missed</h2>
<% missed_header = True %>
<% missed_header = True %>
...
@@ -252,7 +251,6 @@
...
@@ -252,7 +251,6 @@
<br /><h2 class="day">${datetime.date.fromordinal(cur_ep_airdate.toordinal()).strftime('%A').decode(sickbeard.SYS_ENCODING).capitalize()}</h2>
<br /><h2 class="day">${datetime.date.fromordinal(cur_ep_airdate.toordinal()).strftime('%A').decode(sickbeard.SYS_ENCODING).capitalize()}</h2>
% endif
% endif
% endif
% endif
% endif
<% cur_segment = cur_ep_airdate %>
<% cur_segment = cur_ep_airdate %>
% endif
% endif
...
@@ -261,7 +259,7 @@
...
@@ -261,7 +259,7 @@
<br /><h2 class="day">${datetime.date.fromordinal(cur_ep_airdate.toordinal()).strftime('%A').decode(sickbeard.SYS_ENCODING).capitalize()} <span style="font-size: 14px; vertical-align: top;">[Today]</span></h2>
<br /><h2 class="day">${datetime.date.fromordinal(cur_ep_airdate.toordinal()).strftime('%A').decode(sickbeard.SYS_ENCODING).capitalize()} <span style="font-size: 14px; vertical-align: top;">[Today]</span></h2>
<% today_header = True %>
<% today_header = True %>
% endif
% endif
% if run_time:
% if cur_ep_enddate < today:
% if cur_ep_enddate < today:
<% show_div = 'ep_listing listing-overdue' %>
<% show_div = 'ep_listing listing-overdue' %>
% elif cur_ep_airdate >= next_week.date():
% elif cur_ep_airdate >= next_week.date():
...
@@ -273,13 +271,8 @@
...
@@ -273,13 +271,8 @@
<% show_div = 'ep_listing listing-default'%>
<% show_div = 'ep_listing listing-default'%>
% endif
% endif
% endif
% endif
% endif
% elif 'show' == sort:
% elif 'show' == sort:
<% cur_ep_airdate = cur_result['localtime'].date() %>
% if run_time:
<% cur_ep_enddate = cur_result['localtime'] + datetime.timedelta(minutes = run_time) %>
% if cur_ep_enddate < today:
% if cur_ep_enddate < today:
<% show_div = 'ep_listing listing-overdue listingradius' %>
<% show_div = 'ep_listing listing-overdue listingradius' %>
% elif cur_ep_airdate >= next_week.date():
% elif cur_ep_airdate >= next_week.date():
...
@@ -292,7 +285,6 @@
...
@@ -292,7 +285,6 @@
% endif
% endif
% endif
% endif
% endif
% endif
% endif
<div class="${show_div}" id="listing-${cur_result['showid']}">
<div class="${show_div}" id="listing-${cur_result['showid']}">
<div class="tvshowDiv">
<div class="tvshowDiv">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment