mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
banner is removed for series that don't have a banner.
This commit is contained in:
parent
9fcb3a4573
commit
ea86ce2fcb
@ -228,7 +228,7 @@ private List<EpisodeModel> GetEpisodeModels(IList<Episode> episodesInDb)
|
||||
{
|
||||
var episodeFileId = 0;
|
||||
var episodePath = String.Empty;
|
||||
var episodeQuality = String.Empty;
|
||||
var episodeQuality = "N/A";
|
||||
|
||||
if (e.EpisodeFile != null)
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user