mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-05 02:43:37 +00:00
0607b912d8
Add anonymous redirect to external links on pages... Add Trending Show, Add Existing Shows, Add New Shows, Coming Episodes, Display Show, Config Notifications, Config Anime, Subtitle Providers, ASCII chart on General Config Advanced, links of newly created Usenet and Torrent providers. Update xbmc link to Kodi at Config Notifications. Fix irc protocol link to not use http protocol linkage on Config/Help and align lower right side column to the upper right side text.
49 lines
No EOL
1.8 KiB
Cheetah
49 lines
No EOL
1.8 KiB
Cheetah
#import sickbeard
|
|
#from sickbeard.helpers import anon_url
|
|
|
|
<table id="addRootDirTable" class="sickbeardTable tablesorter">
|
|
<thead><tr><th class="col-checkbox"><input type="checkbox" id="checkAll" checked=checked></th><th>Directory</th><th width="20%">Show Name (tvshow.nfo)<th width="20%">Indexer</td></tr></thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th rowspan="1" colspan="4" align="left"><a href="#" style="padding-left: 10px;" class="showManage">Manage Directories</a></th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
#for $curDir in $dirList:
|
|
#if $curDir['added_already']:
|
|
#continue
|
|
#end if
|
|
|
|
#set $show_id = $curDir['dir']
|
|
#if $curDir['existing_info'][0]:
|
|
#set $show_id = $show_id + '|' + $str($curDir['existing_info'][0]) + '|' + $str($curDir['existing_info'][1])
|
|
#set $indexer = $curDir['existing_info'][2]
|
|
#end if
|
|
|
|
#set $indexer = 0
|
|
#if $curDir['existing_info'][0]:
|
|
#set $indexer = $curDir['existing_info'][2]
|
|
#elif $sickbeard.INDEXER_DEFAULT > 0:
|
|
#set $indexer = $sickbeard.INDEXER_DEFAULT
|
|
#end if
|
|
|
|
<tr>
|
|
<td class="col-checkbox"><input type="checkbox" id="$show_id" class="dirCheck" checked=checked></td>
|
|
<td><label for="$show_id">$curDir['display_dir']</label></td>
|
|
#if $curDir['existing_info'][1] and $indexer > 0:
|
|
<td><a href="<%= anon_url(sickbeard.indexerApi(indexer).config['show_url'], curDir['existing_info'][0]) %>">$curDir['existing_info'][1]</a></td>
|
|
#else:
|
|
<td>?</td>
|
|
#end if
|
|
<td align="center">
|
|
<select name="indexer">
|
|
#for $curIndexer in $sickbeard.indexerApi().indexers.items():
|
|
<option value="$curIndexer[0]" #if $curIndexer[0] == $indexer then "selected=\"selected\"" else "UNKNOWN"#>$curIndexer[1]</option>
|
|
#end for
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
#end for
|
|
</tbody>
|
|
</tbody>
|
|
</table> |