2014-07-01 04:49:12 -04:00
|
|
|
#import sickbeard
|
|
|
|
#import datetime
|
|
|
|
#import re
|
|
|
|
#from sickbeard.common import *
|
|
|
|
#from sickbeard import sbdatetime
|
|
|
|
|
|
|
|
#set global $title="Trending Shows"
|
|
|
|
#set global $header="Trending Shows"
|
|
|
|
|
|
|
|
#set global $sbPath=".."
|
|
|
|
|
|
|
|
#set global $topmenu="comingEpisodes"
|
|
|
|
#import os.path
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
|
|
|
|
|
|
|
<script type="text/javascript" src="$sbRoot/js/plotTooltip.js?$sbPID"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="$sbRoot/css/trakt.css?$sbPID" />
|
|
|
|
|
|
|
|
#if $varExists('header')
|
|
|
|
<h1 class="header">$header</h1>
|
|
|
|
#else
|
|
|
|
<h1 class="title">$title</h1>
|
|
|
|
#end if
|
|
|
|
|
2014-09-30 18:20:37 -04:00
|
|
|
<table id="trakt" width="100%" cellspacing="1" border="0" cellpadding="0">
|
2014-07-01 04:49:12 -04:00
|
|
|
#for $i, $cur_show in $enumerate($trending_shows):
|
2014-09-30 18:20:37 -04:00
|
|
|
#if not $i%6
|
2014-07-01 04:49:12 -04:00
|
|
|
<tr>
|
|
|
|
#end if
|
|
|
|
|
|
|
|
<td class="trakt_show">
|
2014-09-30 18:20:37 -04:00
|
|
|
<div class="traktContainer">
|
|
|
|
<div class="trakt-image">
|
|
|
|
<a href="${cur_show["url"]}" target="_blank"><img alt="" class="trakt-image" src="${cur_show["images"]["poster"]}" /></a>
|
|
|
|
<div class="trakt-image-slide">
|
|
|
|
<p>$cur_show["title"]</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-01 04:49:12 -04:00
|
|
|
<div class="clearfix">
|
2014-09-30 18:20:37 -04:00
|
|
|
<h2>$cur_show["ratings"]["percentage"]% <img src="$sbRoot/images/heart.png"></h2>
|
|
|
|
<i style="text-shadow: 1px 1px 0px #000;">$cur_show["ratings"]["votes"] votes</i>
|
2014-07-01 04:49:12 -04:00
|
|
|
|
|
|
|
<div class="traktShowTitleIcons">
|
2014-09-30 18:20:37 -04:00
|
|
|
<a href="$sbRoot/home/addTraktShow?indexer_id=${cur_show["tvdb_id"]}&showName=${cur_show["title"]}" class="btn btn-mini">Add Show</a>
|
2014-07-01 04:49:12 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-09-30 18:20:37 -04:00
|
|
|
</div>
|
2014-07-01 04:49:12 -04:00
|
|
|
</td>
|
2014-09-30 18:20:37 -04:00
|
|
|
|
2014-07-01 04:49:12 -04:00
|
|
|
#end for
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
<!--
|
|
|
|
window.setInterval( "location.reload(true)", 600000); // Refresh every 10 minutes
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_bottom.tmpl")
|