mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-16 04:52:19 -05:00
2c510aa210
Fixes the issue where top menu items would disappear on smaller screens. Add Bootstrap v3.2.0 with Normalize v3.0.1 from github.com/twbs/bootstrap. Add a modified jquery pnotify stylesheet. Various UI tweaks. Update CHANGES.md and TODO.txt
83 lines
1.9 KiB
Cheetah
83 lines
1.9 KiB
Cheetah
#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>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
<!--
|
|
|
|
\$(document).ready(function(){
|
|
|
|
var \$container = [\$('#container'), \$('#container-anime')];
|
|
|
|
jQuery.each(\$container, function (j) {
|
|
this.isotope({
|
|
itemSelector: '.trakt_show',
|
|
layoutMode: 'masonry',
|
|
masonry: {
|
|
columnWidth: 12,
|
|
isFitWidth: true
|
|
}
|
|
});
|
|
});
|
|
|
|
});
|
|
|
|
//-->
|
|
</script>
|
|
|
|
#if $varExists('header')
|
|
<h1 class="header">$header</h1>
|
|
#else
|
|
<h1 class="title">$title</h1>
|
|
#end if
|
|
|
|
<div id="container">
|
|
|
|
#for $cur_show in $trending_shows:
|
|
|
|
#set $image = re.sub(r"(.*)(\..*?)$", r"\1-300\2", $cur_show["images"]["poster"], 0, re.IGNORECASE | re.MULTILINE)
|
|
|
|
<div class="trakt_show">
|
|
<div class="traktContainer">
|
|
<div class="trakt-image">
|
|
<a href="${cur_show["url"]}" target="_blank"><img alt="" class="trakt-image" src="${image}" /></a>
|
|
</div>
|
|
|
|
<div class="show-title">
|
|
$cur_show["title"]
|
|
</div>
|
|
|
|
<div class="clearfix">
|
|
<p>$cur_show["ratings"]["percentage"]% <img src="$sbRoot/images/heart.png"></p>
|
|
<i>$cur_show["ratings"]["votes"] votes</i>
|
|
|
|
<div class="traktShowTitleIcons">
|
|
<a href="$sbRoot/home/addTraktShow?indexer_id=${cur_show["tvdb_id"]}&showName=${cur_show["title"]}" class="btn btn-xs">Add Show</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
#end for
|
|
</div>
|
|
|
|
<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") |