2014-03-10 01:18:05 -04:00
|
|
|
#import sickbeard
|
|
|
|
#import datetime
|
|
|
|
#from sickbeard.common import *
|
|
|
|
#from sickbeard import sbdatetime, network_timezones
|
2014-11-05 06:33:05 -05:00
|
|
|
#set global $title = 'Backlog Overview'
|
|
|
|
#set global $header = 'Backlog Overview'
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
#set global $sbPath = '..'
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
#set global $topmenu = 'manage'#
|
2014-03-10 01:18:05 -04:00
|
|
|
#import os.path
|
2014-11-05 06:33:05 -05:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
2014-11-05 06:33:05 -05:00
|
|
|
\$(document).ready(function()
|
|
|
|
{
|
|
|
|
\$('#pickShow').change(function(){
|
|
|
|
var id = \$(this).val();
|
|
|
|
if (id) {
|
|
|
|
\$('html,body').animate({scrollTop: \$('#show-' + id).offset().top -25},'slow');
|
2014-03-10 01:18:05 -04:00
|
|
|
}
|
|
|
|
});
|
2014-05-23 11:20:44 -04:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2014-03-10 01:18:05 -04:00
|
|
|
});
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
2014-09-30 18:20:37 -04:00
|
|
|
<div id="content960">
|
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
#if $varExists('header')
|
2014-03-10 01:18:05 -04:00
|
|
|
<h1 class="header">$header</h1>
|
2014-11-05 06:33:05 -05:00
|
|
|
#else
|
2014-03-10 01:18:05 -04:00
|
|
|
<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
|
|
|
|
|
2014-10-21 15:09:01 -04:00
|
|
|
<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>
|
2014-03-10 01:18:05 -04:00
|
|
|
</div><br/>
|
|
|
|
|
|
|
|
<div class="float-left">
|
2014-11-05 06:33:05 -05:00
|
|
|
Jump to Show
|
2014-10-21 15:09:01 -04:00
|
|
|
<select id="pickShow" class="form-control form-control-inline input-sm">
|
2014-11-05 06:33:05 -05:00
|
|
|
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
|
|
|
|
#if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] != 0:
|
2014-03-10 01:18:05 -04:00
|
|
|
<option value="$curShow.indexerid">$curShow.name</option>
|
|
|
|
#end if
|
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2014-09-30 18:20:37 -04:00
|
|
|
<table class="sickbeardTable" cellspacing="0" border="0" cellpadding="0">
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
#for $curShow in sorted($sickbeard.showList, key = operator.attrgetter('name')):
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
#if $showCounts[$curShow.indexerid][$Overview.QUAL] + $showCounts[$curShow.indexerid][$Overview.WANTED] == 0:
|
2014-03-10 01:18:05 -04:00
|
|
|
#continue
|
|
|
|
#end if
|
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
<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>
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
<tr class="seasoncols"><th>Episode</th><th>Name</th><th class="nowrap">Airdate</th></tr>
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
#for $curResult in $showSQLResults[$curShow.indexerid]:
|
2014-11-05 06:33:05 -05:00
|
|
|
#set $whichStr = $str($curResult['season']) + 'x' + $str($curResult['episode'])
|
2014-10-30 06:55:22 -04:00
|
|
|
#try:
|
|
|
|
#set $overview = $showCats[$curShow.indexerid][$whichStr]
|
|
|
|
#except Exception
|
|
|
|
#continue
|
|
|
|
#end try
|
|
|
|
|
|
|
|
#if $overview not in ($Overview.QUAL, $Overview.WANTED):
|
|
|
|
#continue
|
|
|
|
#end if
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
<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>
|
2014-03-10 01:18:05 -04:00
|
|
|
#end for
|
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
#end for
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
</table>
|
2014-09-30 18:20:37 -04:00
|
|
|
</div>
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-05 06:33:05 -05:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR,'gui/slick/interfaces/default/inc_bottom.tmpl')
|