banner is removed for series that don't have a banner.

This commit is contained in:
kay.one 2012-02-04 20:34:56 -08:00
parent 9fcb3a4573
commit ea86ce2fcb
2 changed files with 10 additions and 12 deletions

View File

@ -228,7 +228,7 @@ namespace NzbDrone.Web.Controllers
{
var episodeFileId = 0;
var episodePath = String.Empty;
var episodeQuality = String.Empty;
var episodeQuality = "N/A";
if (e.EpisodeFile != null)
{

View File

@ -91,7 +91,7 @@
.seriesTable td
{
border-width: 1px;
padding: 0px 0.6em 0 7px;
padding: 0px 8px 0px 8px;
border-style: inset;
border-color: #EEEEEE;
}
@ -125,17 +125,15 @@
<li>@Ajax.ActionLink("Rename Episodes", "RenameEpisodes", "Episode", new { seriesId = Model.SeriesId }, null)</li>
</ul>
}
<div id="banner-container">
@{
var bannerUrl = "../../Content/Images/img03.jpg";
if (Model.HasBanner)
{
bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
}
}
<img src="@bannerUrl" alt="Banner"/>
</div>
@if (Model.HasBanner)
{
var bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
<div id="banner-container">
<img src="@bannerUrl" alt="Banner"/>
</div>
}
<div class="seasonToggleTopGroup">
@foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber))
{