Lidarr/NzbDrone.Web/Views/Series/Details.cshtml

165 lines
4.3 KiB
Plaintext
Raw Normal View History

@model SeriesDetailsModel
@using NzbDrone.Web.Helpers
@using NzbDrone.Web.Models
@{ViewBag.Title = Model.Title;}
@section HeaderContent
{
@Html.IncludeCss("Grid.css")
}
@{ ViewBag.Title = Model.Title; }
<style>
.seasonToggleTopGroup
{
overflow: hidden;
}
.seasonToggleTop
2011-12-03 23:44:48 +00:00
{
background-color: #F1EDED;
background-position: 5px center;
background-repeat: no-repeat;
display: inline-block;
font-size: 15px;
margin: 2px;
padding: 2px 5px;
width: 100px;
}
2011-12-03 23:44:48 +00:00
.seasonToggleLabel
{
margin-left: 5px;
2012-02-05 03:41:21 +00:00
color: black;
text-decoration: none;
}
2012-02-05 03:41:21 +00:00
.seasonToggleTop .ignoredEpisodesMaster
{
padding-left: 0px;
padding-right: 0px;
border-style: none;
}
2011-12-03 23:44:48 +00:00
.statusImage, .searchImage, .renameImage, .ignoreEpisode, .ignoreEpisodesMaster
{
width: 18px;
height: 18px;
padding: 3px 1px;
margin: 0px;
vertical-align: middle;
}
.searchImage:hover, .renameImage:hover, .ignoreEpisode:hover, .ignoreEpisodesMaster:hover
{
background-color: #065EFE;
}
2011-09-10 23:01:15 +00:00
#banner-container
{
width: 758px;
height: 140px;
padding: 0px;
margin-top: 10px;
margin-bottom: 15px;
margin-left: auto;
margin-right: auto;
}
.seriesTable
{
width: 100%;
border-width: 1px;
border-spacing: 2px;
border-style: none;
border-color: white;
border-collapse: collapse;
}
.seriesTable th
{
font-family: "Segoe UI Light" , "Open Sans" , "Segoe UI" , sans-serif;
border-width: 300;
font-size: 17px;
padding: 2px;
border-style: inset;
border-color: #EEEEEE;
padding-left: 7px;
text-align: left;
background-color: white;
font-weight: lighter;
}
.seriesTable td
{
border-width: 1px;
padding: 0px 8px 0px 8px;
border-style: inset;
border-color: #EEEEEE;
}
.detail-view
{
display: none;
}
.seasonSection
{
margin-top: 50px;
}
/* Colour alternating rows */
.seriesTable tr:nth-child(4n)
{
background: #f0f5ff;
}
.seriesTable tr:nth-child(4n+1)
{
background: #f0f5ff;
}
</style>
@section ActionMenu
{
2011-12-03 23:44:48 +00:00
<ul class="sub-menu">
2011-11-26 07:53:16 +00:00
<li>@Ajax.ActionLink("Scan Disk", "ScanDisk", "Command", new { seriesId = Model.SeriesId }, null)</li>
<li>@Ajax.ActionLink("Update Info", "UpdateInfo", "Command", new { seriesId = Model.SeriesId }, null)</li>
2011-11-26 07:53:16 +00:00
<li>@Ajax.ActionLink("Search for missing episodes", "BacklogSeries", "Episode", new { seriesId = Model.SeriesId }, null)</li>
<li>@Ajax.ActionLink("Rename Episodes", "RenameEpisodes", "Episode", new { seriesId = Model.SeriesId }, null)</li>
</ul>
}
2011-12-01 05:25:01 +00:00
@if (Model.HasBanner)
{
var bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
<div id="banner-container">
<img src="@bannerUrl" alt="Banner"/>
</div>
}
2011-12-03 23:44:48 +00:00
<div class="seasonToggleTopGroup">
@foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber))
2011-04-24 05:48:12 +00:00
{
var ignoreSeason = "ignoreSeason_" + season.SeasonNumber;
2011-12-03 23:44:48 +00:00
<div class="seasonToggleTop">
<img src='../../Content/Images/@(season.AnyWanted ? "notIgnored" : "ignored").png'
class='ignoredEpisodesMaster ignoreEpisode @ignoreSeason @(season.AnyWanted ? "" : "ignored")'
title='Click to toggle season ignore status' />
<a href="@string.Format("#SeasonSection_{0}", season.SeasonNumber)" class="seasonToggleLabel">@(season.SeasonNumber == 0 ? "Specials" : "Season " + season.SeasonNumber)</a>
</div>
2011-04-24 05:48:12 +00:00
}
2011-12-03 23:44:48 +00:00
</div>
@foreach (var s in Model.Seasons.OrderByDescending(a => a.SeasonNumber))
2011-12-03 23:44:48 +00:00
{
<div class="seasonSection" id="@string.Format("SeasonSection_{0}", s.SeasonNumber)">
@{
2012-02-05 03:41:21 +00:00
var season = s;
Html.RenderPartial("Season", season);
}
</div>
2011-12-03 23:44:48 +00:00
}
@section Scripts{
@Html.IncludeScript("NzbDrone/seriesDetails.js")
@Html.IncludeScript("NzbDrone/grid.js")
<script type="text/javascript">
seriesId = @Model.SeriesId;
</script>
}