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
af688558
Commit
af688558
authored
Jul 30, 2015
by
Alexis Tyler
Browse files
Options
Downloads
Patches
Plain Diff
manage_episodeStatuses mako
parent
b872e2cd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
gui/slick/interfaces/default/manage_backlogOverview.tmpl
+0
-116
0 additions, 116 deletions
gui/slick/interfaces/default/manage_backlogOverview.tmpl
gui/slick/interfaces/default/manage_episodeStatuses.mako
+61
-56
61 additions, 56 deletions
gui/slick/interfaces/default/manage_episodeStatuses.mako
with
61 additions
and
172 deletions
gui/slick/interfaces/default/manage_backlogOverview.tmpl
deleted
100644 → 0
+
0
−
116
View file @
b872e2cd
#import sickbeard
#import datetime
#from sickbeard.common import *
#from sickbeard import sbdatetime, network_timezones
#set global $title = 'Backlog Overview'
#set global $header = 'Backlog Overview'
#set global $sbPath = '..'
#set global $topmenu = 'manage'#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
<script type="text/javascript">
<!--
\$(document).ready(function()
{
\$('#pickShow').change(function(){
var id = \$(this).val();
if (id) {
\$('html,body').animate({scrollTop: \$('#show-' + id).offset().top -25},'slow');
}
});
#set $fuzzydate = 'airdate'
#if $sickbeard.FUZZY_DATING:
fuzzyMoment({
containerClass : '.${fuzzydate}',
dateHasTime : false,
dateFormat : '${sickbeard.DATE_PRESET}',
timeFormat : '${sickbeard.TIME_PRESET}',
trimZero : #if $sickbeard.TRIM_ZERO then "true" else "false"#
});
#end if
});
//-->
</script>
<div id="content960">
#if $varExists('header')
<h1 class="header">$header</h1>
#else
<h1 class="title">$title</h1>
#end if
#set $totalWanted = 0
#set $totalQual = 0
#for $curShow in $sickbeard.showList:
#set $totalWanted = $totalWanted + $showCounts[$curShow.indexerid][$Overview.WANTED]
#set $totalQual = $totalQual + $showCounts[$curShow.indexerid][$Overview.QUAL]
#end for
<div class="h2footer pull-right">
<span class="listing-key wanted">Wanted: <b>$totalWanted</b></span>
<span class="listing-key qual">Low Quality: <b>$totalQual</b></span>
</div><br/>
<div class="float-left">
Jump to Show
<select id="pickShow" class="form-control form-control-inline input-sm">
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
#if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] != 0:
<option value="$curShow.indexerid">$curShow.name</option>
#end if
#end for
</select>
</div>
<table class="sickbeardTable" cellspacing="0" border="0" cellpadding="0">
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
#if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] == 0:
#continue
#end if
<tr class="seasonheader" id="show-$curShow.indexerid">
<td colspan="3" class="align-left">
<br/><h2><a href="$sbRoot/home/displayShow?show=$curShow.indexerid">$curShow.name</a></h2>
<div class="pull-right">
<span class="listing-key wanted">Wanted: <b>$showCounts[$curShow.indexerid][$Overview.WANTED]</b></span>
<span class="listing-key qual">Low Quality: <b>$showCounts[$curShow.indexerid][$Overview.QUAL]</b></span>
<a class="btn btn-inline forceBacklog" href="$sbRoot/manage/backlogShow?indexer_id=$curShow.indexerid"><i class="icon-play-circle icon-white"></i> Force Backlog</a>
</div>
</td>
</tr>
<tr class="seasoncols"><th>Episode</th><th>Name</th><th class="nowrap">Airdate</th></tr>
#for $curResult in $showSQLResults[$curShow.indexerid]:
#set $whichStr = $str($curResult['season']) + 'x' + $str($curResult['episode'])
#try:
#set $overview = $showCats[$curShow.indexerid][$whichStr]
#except Exception
#continue
#end try
#if $overview not in ($Overview.QUAL, $Overview.WANTED):
#continue
#end if
<tr class="seasonstyle $Overview.overviewStrings[$showCats[$curShow.indexerid][$whichStr]]">
<td class="tableleft" align="center">$whichStr</td>
<td>$curResult["name"]</td>
<td class="tableright" align="center" class="nowrap"><div class="${fuzzydate}">#if int($curResult['airdate']) == 1 then 'never' else $sbdatetime.sbdatetime.sbfdate($sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($curResult['airdate'],$curShow.airs,$curShow.network)))#</div></td>
</tr>
#end for
#end for
</table>
</div>
#include $os.path.join($sickbeard.PROG_DIR,'gui/slick/interfaces/default/inc_bottom.tmpl')
This diff is collapsed.
Click to expand it.
gui/slick/interfaces/default/manage_episodeStatuses.mako
+
61
−
56
View file @
af688558
#import sickbeard
#import datetime
#from sickbeard import common
#set global $title="Episode Overview"
#set global $header="Episode Overview"
#set global $sbPath=".."
#set global $topmenu="manage"#
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
<%!
import sickbeard
import datetime
from sickbeard import common
global title="Episode Overview"
global header="Episode Overview"
global sbPath=".."
global topmenu="manage"#
import os.path
include file=os.path.join(sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.mako")
%>
<div id="content960">
#
if
$varExists('header')
<h1 class="header">$header</h1>
#
else
<h1 class="title">$title</h1>
#
end
if
%
if
not header is UNDEFINED:
<h1 class="header">$
{
header
}
</h1>
%
else
<h1 class="title">$
{
title
}
</h1>
%
endif
#
if not
$
whichStatus or (
$
whichStatus and not
$
ep_counts):
%
if not whichStatus or (whichStatus and not ep_counts):
#
if
$
whichStatus:
<h2>None of your episodes have status $common.statusStrings[
$
int(
$
whichStatus)]</h2>
%
if whichStatus:
<h2>None of your episodes have status $
{
common.statusStrings[int(whichStatus)]
}
</h2>
<br />
#
end
if
%
endif
<form action="$sbRoot/manage/episodeStatuses" method="get">
<form action="$
{
sbRoot
}
/manage/episodeStatuses" method="get">
Manage episodes with status <select name="whichStatus" class="form-control form-control-inline input-sm">
#
for
$
curStatus in [
$
common.SKIPPED,
$
common.SNATCHED,
$
common.WANTED,
$
common.ARCHIVED,
$
common.IGNORED]:
<option value="$curStatus">$common.statusStrings[
$
curStatus]</option>
#
end
for
%
for curStatus in [common.SKIPPED, common.SNATCHED, common.WANTED, common.ARCHIVED, common.IGNORED]:
<option value="$
{
curStatus
}
">$
{
common.statusStrings[curStatus]
}
</option>
%
endfor
</select>
<input class="btn btn-inline" type="submit" value="Manage" />
</form>
#
else
%
else
<script type="text/javascript" src="$sbRoot/js/manageEpisodeStatuses.js?$sbPID"></script>
<script type="text/javascript" src="$
{
sbRoot
}
/js/manageEpisodeStatuses.js?$
{
sbPID
}
"></script>
<form action="$sbRoot/manage/changeEpisodeStatuses" method="post">
<input type="hidden" id="oldStatus" name="oldStatus" value="$whichStatus" />
<form action="$
{
sbRoot
}
/manage/changeEpisodeStatuses" method="post">
<input type="hidden" id="oldStatus" name="oldStatus" value="$
{
whichStatus
}
" />
<h2>Shows containing $common.statusStrings[
$
int(
$
whichStatus)] episodes</h2>
<h2>Shows containing $
{
common.statusStrings[int(whichStatus)]
}
episodes</h2>
<br />
#if $whichStatus in ($common.ARCHIVED, $common.IGNORED, $common.SNATCHED):
#set $row_class = "good"
#else
#set $row_class = $common.Overview.overviewStrings[$whichStatus]
#end if
<input type="hidden" id="row_class" value="$row_class" />
<%
if whichStatus in (common.ARCHIVED, common.IGNORED, common.SNATCHED):
row_class = "good"
else
row_class = common.Overview.overviewStrings[whichStatus]
endif
%>
<input type="hidden" id="row_class" value="${row_class}" />
Set checked shows/episodes to <select name="newStatus" class="form-control form-control-inline input-sm">
#set $statusList = [$common.SKIPPED, $common.WANTED, $common.ARCHIVED, $common.IGNORED]
#if $int($whichStatus) in $statusList
$statusList.remove($int($whichStatus))
#end if
#if $int($whichStatus) in [$common.SNATCHED, $common.SNATCHED_PROPER]
$statusList.append($common.FAILED)
#end if
#for $curStatus in $statusList:
<option value="$curStatus">$common.statusStrings[$curStatus]</option>
#end for
<%
statusList = [common.SKIPPED, common.WANTED, common.ARCHIVED, common.IGNORED]
if int(whichStatus) in statusList
statusList.remove(int(whichStatus))
endif
if int(whichStatus) in [common.SNATCHED, common.SNATCHED_PROPER]
statusList.append(common.FAILED)
endif
%>
% for curStatus in statusList:
<option value="${curStatus}">${common.statusStrings[curStatus]}</option>
% endfor
</select>
<input class="btn btn-inline" type="submit" value="Go" />
...
...
@@ -74,16 +79,16 @@ $statusList.append($common.FAILED)
<br />
<table class="sickbeardTable manageTable" cellspacing="1" border="0" cellpadding="0">
#
for
$
cur_indexer_id in
$
sorted_show_ids:
<tr id="$cur_indexer_id">
<th><input type="checkbox" class="allCheck" id="allCheck-$cur_indexer_id" name="$cur_indexer_id-all" checked="checked" /></th>
<th colspan="2" style="width: 100%; text-align: left;"><a class="whitelink" href="$sbRoot/home/displayShow?show=$cur_indexer_id">$show_names[
$
cur_indexer_id]</a> ($ep_counts[$cur_indexer_id]) <input type="button" class="pull-right get_more_eps btn" id="$cur_indexer_id" value="Expand" /></th>
%
for cur_indexer_id in sorted_show_ids:
<tr id="$
{
cur_indexer_id
}
">
<th><input type="checkbox" class="allCheck" id="allCheck-$
{
cur_indexer_id
}
" name="$
{
cur_indexer_id
}
-all" checked="checked" /></th>
<th colspan="2" style="width: 100%; text-align: left;"><a class="whitelink" href="$
{
sbRoot
}
/home/displayShow?show=$
{
cur_indexer_id
}
">$
{
show_names[cur_indexer_id]
}
</a> ($
{
ep_counts[$cur_indexer_id]
}
) <input type="button" class="pull-right get_more_eps btn" id="$
{
cur_indexer_id
}
" value="Expand" /></th>
</tr>
#
end
for
%
endfor
</table>
</form>
#
end
if
%
endif
</div>
#
include
$
os.path.join(
$
sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.
tmpl
")
%
include
file=
os.path.join(sickbeard.PROG_DIR,
"gui/slick/interfaces/default/inc_bottom.
mako
")
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