1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

fix for date clipping on poster view

This commit is contained in:
Supremicus 2014-10-02 09:36:55 +10:00
parent f20250e18d
commit 362ee82c29
2 changed files with 54 additions and 62 deletions

View File

@ -83,18 +83,6 @@
border-radius: 0px; border-radius: 0px;
} }
.show-details {
width: 180px;
padding-left: 4px;
padding-top: 4px;
cursor: default;
}
.show-airby {
float: left;
width: 33%;
}
.show-add { .show-add {
text-shadow: 1px 1px #000; text-shadow: 1px 1px #000;
font-size: 11px; font-size: 11px;
@ -118,25 +106,11 @@
line-height: 34px; line-height: 34px;
} }
.show-network {
float: left;
width: 33%;
text-shadow: 1px 1px #000;
font-size: 11px;
text-align: center;
}
.show-network-image { .show-network-image {
margin-top: 5px;
width: 50px; width: 50px;
height: auto; height: auto;
} }
.show-quality {
float: left;
width: 33%;
}
.show-dlstats { .show-dlstats {
text-shadow: 1px 1px #000; text-shadow: 1px 1px #000;
font-size: 11px; font-size: 11px;

View File

@ -334,7 +334,7 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
#set $download_stat = str($cur_downloaded) #set $download_stat = str($cur_downloaded)
#set $download_stat_tip = "Downloaded: " + str($cur_downloaded) #set $download_stat_tip = "Downloaded: " + str($cur_downloaded)
#if $cur_snatched > 0: #if $cur_snatched > 0:
#set $download_stat = download_stat + "+" + str($cur_snatched) #set $download_stat = download_stat
#set $download_stat_tip = download_stat_tip + "
" + "Snatched: " + str($cur_snatched) #set $download_stat_tip = download_stat_tip + "
" + "Snatched: " + str($cur_snatched)
#end if #end if
#set $download_stat = download_stat + " / " + str($cur_total) #set $download_stat = download_stat + " / " + str($cur_total)
@ -351,8 +351,22 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
#end if #end if
#set $progressbar_percent = $nom * 100 / $den #set $progressbar_percent = $nom * 100 / $den
#if "a" in sickbeard.DATE_PRESET:
#set $showheight = "344px"
#set $tableheight = "62px"
#else if "B" in sickbeard.DATE_PRESET:
#set $showheight = "374px"
#set $tableheight = "92px"
#else if "A" in sickbeard.DATE_PRESET:
#set $showheight = "344px"
#set $tableheight = "62px"
#else
#set $showheight = "323px"
#set $tableheight = "42px"
#end if
<div class="show" id="show$curShow.indexerid" data-name="$curShow.name" data-date="#if $cur_airs_next then $time.mktime($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network).timetuple()) else ""#" data-network="$curShow.network" data-progress="$progressbar_percent"> <div class="show" style="height: $showheight" id="show$curShow.indexerid" data-name="$curShow.name" data-date="#if $cur_airs_next then $time.mktime($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network).timetuple()) else ""#" data-network="$curShow.network" data-progress="$progressbar_percent">
<div class="show-image"> <div class="show-image">
<a href="$sbRoot/home/displayShow?show=$curShow.indexerid"><img alt="" class="show-image" src="$sbRoot/showPoster/?show=$curShow.indexerid&amp;which=poster_thumb" /></a> <a href="$sbRoot/home/displayShow?show=$curShow.indexerid"><img alt="" class="show-image" src="$sbRoot/showPoster/?show=$curShow.indexerid&amp;which=poster_thumb" /></a>
<div class="show-image-slide"> <div class="show-image-slide">
@ -382,41 +396,45 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
}); });
//--> //-->
</script> </script>
<div class="show-details">
<div class="show-airby">
#if $cur_airs_next
#set $ldatetime = $network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network)
<div class="show-date">Next Ep: $sbdatetime.sbdatetime.sbfdate($ldatetime)</div>
#else if $curShow.status != "Ended" and int($curShow.paused) == 1:
<div class="show-status">Paused</div>
#else if $curShow.status:
<div class="show-status">$curShow.status</div>
#else
<div class="show-status">?</div>
#end if
</div>
<div class="show-network"> <table width="184px" height="$tableheight" cellspacing="1" border="0" cellpadding="0" style="padding-left: 2px; cursor: default;">
#if $curShow.network: <col width="60px" />
<img class="show-network-image" src="$sbRoot/images/network/${curShow.network.lower()}.png" alt="$curShow.network" title="$curShow.network" /> <col width="59px" />
#else: <col width="60px" />
$curShow.network
#end if <tr>
</div> <td style="text-align:center; vertical-align:middle;">
#if $cur_airs_next
<div class="show-quality"> #set $ldatetime = $network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network)
<span class="show-dlstats" title="$download_stat_tip">$download_stat</span> <div class="show-date">Next Ep: $sbdatetime.sbdatetime.sbfdate($ldatetime)</div>
<div class="float-right"> #else if $curShow.status != "Ended" and int($curShow.paused) == 1:
#if $curShow.quality in $qualityPresets: <div class="show-status">Paused</div>
<span class="show-dlstats">$qualityPresetStrings[$curShow.quality]</span> #else if $curShow.status:
#else: <div class="show-status">$curShow.status</div>
<span class="show-dlstats">Custom</span> #else
#end if <div class="show-status">?</div>
</div> #end if
</div> </td>
</div> <td style="text-align:center; vertical-align:middle;">
#if $curShow.network:
<img class="show-network-image" src="$sbRoot/images/network/${curShow.network.lower()}.png" alt="$curShow.network" title="$curShow.network" />
#else:
$curShow.network
#end if
</td>
<td style="text-align:center; vertical-align:middle;">
<span class="show-dlstats" title="$download_stat_tip">$download_stat</span>
<div class="float-right">
#if $curShow.quality in $qualityPresets:
<span class="show-dlstats">$qualityPresetStrings[$curShow.quality]</span>
#else:
<span class="show-dlstats">Custom</span>
#end if
</td>
</tr>
</table>
</div> </div>