2012-02-04 04:34:02 +00:00
|
|
|
@model SeriesDetailsModel
|
2011-12-09 04:57:23 +00:00
|
|
|
@using NzbDrone.Web.Helpers
|
2011-04-21 07:14:47 +00:00
|
|
|
@using NzbDrone.Web.Models
|
2011-12-10 05:05:17 +00:00
|
|
|
@{ViewBag.Title = Model.Title;}
|
2011-12-09 04:57:23 +00:00
|
|
|
@section HeaderContent
|
|
|
|
{
|
|
|
|
@Html.IncludeCss("Grid.css")
|
|
|
|
}
|
2011-12-10 05:05:17 +00:00
|
|
|
@{ ViewBag.Title = Model.Title; }
|
2012-02-05 03:27:29 +00:00
|
|
|
<style>
|
2011-08-20 03:02:47 +00:00
|
|
|
.seasonToggleTopGroup
|
|
|
|
{
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.seasonToggleTop
|
2011-12-03 23:44:48 +00:00
|
|
|
{
|
2011-08-20 03:02:47 +00:00
|
|
|
background-color: #F1EDED;
|
|
|
|
background-position: 5px center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 15px;
|
|
|
|
margin: 2px;
|
|
|
|
padding: 2px 5px;
|
2011-08-28 05:45:36 +00:00
|
|
|
width: 100px;
|
2011-08-20 03:02:47 +00:00
|
|
|
}
|
2011-12-03 23:44:48 +00:00
|
|
|
|
2011-08-20 03:02:47 +00:00
|
|
|
.seasonToggleLabel
|
|
|
|
{
|
|
|
|
margin-left: 5px;
|
2012-02-05 03:41:21 +00:00
|
|
|
color: black;
|
|
|
|
text-decoration: none;
|
2011-08-20 03:02:47 +00:00
|
|
|
}
|
2012-02-05 03:41:21 +00:00
|
|
|
|
2011-08-20 03:02:47 +00:00
|
|
|
.seasonToggleTop .ignoredEpisodesMaster
|
|
|
|
{
|
|
|
|
padding-left: 0px;
|
|
|
|
padding-right: 0px;
|
2011-08-23 03:52:08 +00:00
|
|
|
border-style: none;
|
2011-08-20 03:02:47 +00:00
|
|
|
}
|
2011-12-03 23:44:48 +00:00
|
|
|
|
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;
|
|
|
|
}
|
2012-02-06 22:13:33 +00:00
|
|
|
|
2012-02-05 03:27:29 +00:00
|
|
|
.seasonSection
|
|
|
|
{
|
|
|
|
margin-top: 50px;
|
|
|
|
}
|
2011-08-03 07:26:39 +00:00
|
|
|
</style>
|
2012-02-05 03:27:29 +00:00
|
|
|
@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>
|
2011-08-06 02:04:35 +00:00
|
|
|
<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>
|
2011-08-06 02:04:35 +00:00
|
|
|
</ul>
|
2011-04-21 07:14:47 +00:00
|
|
|
}
|
2011-12-01 05:25:01 +00:00
|
|
|
|
2012-02-05 04:34:56 +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">
|
2012-02-04 07:36:52 +00:00
|
|
|
@foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber))
|
2011-04-24 05:48:12 +00:00
|
|
|
{
|
2012-02-04 07:36:52 +00:00
|
|
|
var ignoreSeason = "ignoreSeason_" + season.SeasonNumber;
|
2011-12-03 23:44:48 +00:00
|
|
|
<div class="seasonToggleTop">
|
2012-02-04 07:36:52 +00:00
|
|
|
<img src='../../Content/Images/@(season.AnyWanted ? "notIgnored" : "ignored").png'
|
2012-02-07 01:22:17 +00:00
|
|
|
class='ignoredEpisodesMaster ignoreEpisode @ignoreSeason@(season.AnyWanted ? " " : " ignored")'
|
2012-02-04 07:36:52 +00:00
|
|
|
title='Click to toggle season ignore status' />
|
2012-02-05 03:27:29 +00:00
|
|
|
<a href="@string.Format("#SeasonSection_{0}", season.SeasonNumber)" class="seasonToggleLabel">@(season.SeasonNumber == 0 ? "Specials" : "Season " + season.SeasonNumber)</a>
|
2011-05-19 15:08:00 +00:00
|
|
|
</div>
|
2011-04-24 05:48:12 +00:00
|
|
|
}
|
2011-12-03 23:44:48 +00:00
|
|
|
</div>
|
2012-02-04 04:34:02 +00:00
|
|
|
@foreach (var s in Model.Seasons.OrderByDescending(a => a.SeasonNumber))
|
2011-12-03 23:44:48 +00:00
|
|
|
{
|
2012-02-05 03:27:29 +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);
|
2012-02-05 03:27:29 +00:00
|
|
|
}
|
|
|
|
</div>
|
2011-12-03 23:44:48 +00:00
|
|
|
}
|
2011-04-21 07:14:47 +00:00
|
|
|
@section Scripts{
|
2011-12-09 04:57:23 +00:00
|
|
|
@Html.IncludeScript("NzbDrone/seriesDetails.js")
|
2011-04-21 07:14:47 +00:00
|
|
|
<script type="text/javascript">
|
2011-08-04 01:45:45 +00:00
|
|
|
seriesId = @Model.SeriesId;
|
2010-10-30 02:46:32 +00:00
|
|
|
</script>
|
2011-04-21 07:14:47 +00:00
|
|
|
}
|