From ea86ce2fcb3bd2b4a6cab0bc139e3b300684ab42 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 4 Feb 2012 20:34:56 -0800 Subject: [PATCH] banner is removed for series that don't have a banner. --- NzbDrone.Web/Controllers/SeriesController.cs | 2 +- NzbDrone.Web/Views/Series/Details.cshtml | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/NzbDrone.Web/Controllers/SeriesController.cs b/NzbDrone.Web/Controllers/SeriesController.cs index b54d0ab35..13a6a6bed 100644 --- a/NzbDrone.Web/Controllers/SeriesController.cs +++ b/NzbDrone.Web/Controllers/SeriesController.cs @@ -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) { diff --git a/NzbDrone.Web/Views/Series/Details.cshtml b/NzbDrone.Web/Views/Series/Details.cshtml index de660570a..3c0df2c86 100644 --- a/NzbDrone.Web/Views/Series/Details.cshtml +++ b/NzbDrone.Web/Views/Series/Details.cshtml @@ -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 @@
  • @Ajax.ActionLink("Rename Episodes", "RenameEpisodes", "Episode", new { seriesId = Model.SeriesId }, null)
  • } - +@if (Model.HasBanner) +{ + var bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg"; + +} +
    @foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber)) {