banner is removed for series that don't have a banner.
This commit is contained in:
parent
9fcb3a4573
commit
ea86ce2fcb
|
@ -228,7 +228,7 @@ namespace NzbDrone.Web.Controllers
|
||||||
{
|
{
|
||||||
var episodeFileId = 0;
|
var episodeFileId = 0;
|
||||||
var episodePath = String.Empty;
|
var episodePath = String.Empty;
|
||||||
var episodeQuality = String.Empty;
|
var episodeQuality = "N/A";
|
||||||
|
|
||||||
if (e.EpisodeFile != null)
|
if (e.EpisodeFile != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
.seriesTable td
|
.seriesTable td
|
||||||
{
|
{
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
padding: 0px 0.6em 0 7px;
|
padding: 0px 8px 0px 8px;
|
||||||
border-style: inset;
|
border-style: inset;
|
||||||
border-color: #EEEEEE;
|
border-color: #EEEEEE;
|
||||||
}
|
}
|
||||||
|
@ -125,17 +125,15 @@
|
||||||
<li>@Ajax.ActionLink("Rename Episodes", "RenameEpisodes", "Episode", new { seriesId = Model.SeriesId }, null)</li>
|
<li>@Ajax.ActionLink("Rename Episodes", "RenameEpisodes", "Episode", new { seriesId = Model.SeriesId }, null)</li>
|
||||||
</ul>
|
</ul>
|
||||||
}
|
}
|
||||||
<div id="banner-container">
|
|
||||||
@{
|
|
||||||
var bannerUrl = "../../Content/Images/img03.jpg";
|
|
||||||
|
|
||||||
if (Model.HasBanner)
|
@if (Model.HasBanner)
|
||||||
{
|
{
|
||||||
bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
|
var bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
|
||||||
}
|
<div id="banner-container">
|
||||||
}
|
|
||||||
<img src="@bannerUrl" alt="Banner"/>
|
<img src="@bannerUrl" alt="Banner"/>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
<div class="seasonToggleTopGroup">
|
<div class="seasonToggleTopGroup">
|
||||||
@foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber))
|
@foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue