1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 01:06:30 +00:00

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))
{