2012-02-04 07:34:02 +03:00
|
|
|
@model SeriesDetailsModel
|
2011-12-09 07:57:23 +03:00
|
|
|
@using NzbDrone.Web.Helpers
|
2011-04-21 10:14:47 +03:00
|
|
|
@using NzbDrone.Web.Models
|
2011-12-10 08:05:17 +03:00
|
|
|
@{ViewBag.Title = Model.Title;}
|
2011-12-09 07:57:23 +03:00
|
|
|
@section HeaderContent
|
|
|
|
{
|
|
|
|
@Html.IncludeCss("Grid.css")
|
|
|
|
}
|
2011-12-10 08:05:17 +03:00
|
|
|
@{ ViewBag.Title = Model.Title; }
|
2012-02-05 06:27:29 +03:00
|
|
|
<style>
|
2011-08-20 06:02:47 +03:00
|
|
|
.seasonToggleTopGroup
|
|
|
|
{
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.seasonToggleTop
|
2011-12-04 02:44:48 +03:00
|
|
|
{
|
2011-08-20 06:02:47 +03: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 08:45:36 +03:00
|
|
|
width: 100px;
|
2011-08-20 06:02:47 +03:00
|
|
|
}
|
2011-12-04 02:44:48 +03:00
|
|
|
|
2011-08-20 06:02:47 +03:00
|
|
|
.seasonToggleLabel
|
|
|
|
{
|
|
|
|
margin-left: 5px;
|
2012-02-05 06:41:21 +03:00
|
|
|
color: black;
|
|
|
|
text-decoration: none;
|
2011-08-20 06:02:47 +03:00
|
|
|
}
|
2012-02-05 06:41:21 +03:00
|
|
|
|
2011-08-20 06:02:47 +03:00
|
|
|
.seasonToggleTop .ignoredEpisodesMaster
|
|
|
|
{
|
|
|
|
padding-left: 0px;
|
|
|
|
padding-right: 0px;
|
2011-08-23 06:52:08 +03:00
|
|
|
border-style: none;
|
2011-08-20 06:02:47 +03:00
|
|
|
}
|
2011-12-04 02:44:48 +03:00
|
|
|
|
2011-08-23 06:52:08 +03:00
|
|
|
.statusImage, .searchImage, .renameImage, .ignoreEpisode, .ignoreEpisodesMaster
|
2011-08-22 09:25:32 +03:00
|
|
|
{
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
2012-02-05 01:05:56 +03:00
|
|
|
padding: 3px 1px;
|
2012-02-04 07:34:02 +03:00
|
|
|
margin: 0px;
|
2012-02-05 01:05:56 +03:00
|
|
|
vertical-align: middle;
|
2011-08-23 06:52:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.searchImage:hover, .renameImage:hover, .ignoreEpisode:hover, .ignoreEpisodesMaster:hover
|
|
|
|
{
|
2012-02-05 01:05:56 +03:00
|
|
|
background-color: #065EFE;
|
2011-08-23 06:52:08 +03:00
|
|
|
}
|
|
|
|
|
2011-09-11 02:01:15 +03:00
|
|
|
#banner-container
|
|
|
|
{
|
|
|
|
width: 758px;
|
|
|
|
height: 140px;
|
|
|
|
padding: 0px;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
2012-02-04 07:34:02 +03:00
|
|
|
|
2012-02-05 06:27:29 +03:00
|
|
|
.seriesTable
|
|
|
|
{
|
2012-02-04 07:34:02 +03:00
|
|
|
width: 100%;
|
2012-02-05 06:27:29 +03:00
|
|
|
border-width: 1px;
|
|
|
|
border-spacing: 2px;
|
|
|
|
border-style: none;
|
|
|
|
border-color: white;
|
|
|
|
border-collapse: collapse;
|
2012-02-04 07:34:02 +03:00
|
|
|
}
|
|
|
|
|
2012-02-05 06:27:29 +03:00
|
|
|
.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;
|
2012-02-04 07:34:02 +03:00
|
|
|
text-align: left;
|
2012-02-04 23:08:39 +03:00
|
|
|
background-color: white;
|
2012-02-05 06:27:29 +03:00
|
|
|
font-weight: lighter;
|
2012-02-04 07:34:02 +03:00
|
|
|
}
|
|
|
|
|
2012-02-05 06:27:29 +03:00
|
|
|
.seriesTable td
|
|
|
|
{
|
|
|
|
border-width: 1px;
|
|
|
|
padding: 0px 0.6em 0 7px;
|
|
|
|
border-style: inset;
|
|
|
|
border-color: #EEEEEE;
|
2012-02-04 07:34:02 +03:00
|
|
|
}
|
2012-02-04 23:08:39 +03:00
|
|
|
|
2012-02-05 06:27:29 +03:00
|
|
|
.detail-view
|
|
|
|
{
|
2012-02-04 23:08:39 +03:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2012-02-05 06:27:29 +03:00
|
|
|
.seasonSection
|
|
|
|
{
|
|
|
|
margin-top: 50px;
|
|
|
|
}
|
|
|
|
|
2012-02-04 23:08:39 +03:00
|
|
|
/* Colour alternating rows */
|
2012-02-05 06:27:29 +03:00
|
|
|
.seriesTable tr:nth-child(4n)
|
|
|
|
{
|
|
|
|
background: #f0f5ff;
|
|
|
|
}
|
|
|
|
.seriesTable tr:nth-child(4n+1)
|
|
|
|
{
|
|
|
|
background: #f0f5ff;
|
|
|
|
}
|
2011-08-03 10:26:39 +03:00
|
|
|
</style>
|
2012-02-05 06:27:29 +03:00
|
|
|
@section ActionMenu
|
|
|
|
{
|
2011-12-04 02:44:48 +03:00
|
|
|
<ul class="sub-menu">
|
2011-11-26 10:53:16 +03:00
|
|
|
<li>@Ajax.ActionLink("Scan Disk", "ScanDisk", "Command", new { seriesId = Model.SeriesId }, null)</li>
|
2011-08-06 05:04:35 +03:00
|
|
|
<li>@Ajax.ActionLink("Update Info", "UpdateInfo", "Command", new { seriesId = Model.SeriesId }, null)</li>
|
2011-11-26 10:53:16 +03: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 05:04:35 +03:00
|
|
|
</ul>
|
2011-04-21 10:14:47 +03:00
|
|
|
}
|
2011-12-04 02:44:48 +03:00
|
|
|
<div id="banner-container">
|
|
|
|
@{
|
|
|
|
var bannerUrl = "../../Content/Images/img03.jpg";
|
2011-12-01 08:25:01 +03:00
|
|
|
|
2011-12-04 02:44:48 +03:00
|
|
|
if (Model.HasBanner)
|
2011-08-20 06:02:47 +03:00
|
|
|
{
|
2011-12-04 02:44:48 +03:00
|
|
|
bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
|
2011-08-20 06:02:47 +03:00
|
|
|
}
|
2011-12-04 02:44:48 +03:00
|
|
|
}
|
|
|
|
<img src="@bannerUrl" alt="Banner"/>
|
|
|
|
</div>
|
|
|
|
<div class="seasonToggleTopGroup">
|
2012-02-04 10:36:52 +03:00
|
|
|
@foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber))
|
2011-04-24 08:48:12 +03:00
|
|
|
{
|
2012-02-04 10:36:52 +03:00
|
|
|
var ignoreSeason = "ignoreSeason_" + season.SeasonNumber;
|
2011-12-04 02:44:48 +03:00
|
|
|
<div class="seasonToggleTop">
|
2012-02-04 10:36:52 +03:00
|
|
|
<img src='../../Content/Images/@(season.AnyWanted ? "notIgnored" : "ignored").png'
|
|
|
|
class='ignoredEpisodesMaster ignoreEpisode @ignoreSeason @(season.AnyWanted ? "" : "ignored")'
|
|
|
|
title='Click to toggle season ignore status' />
|
2012-02-05 06:27:29 +03:00
|
|
|
<a href="@string.Format("#SeasonSection_{0}", season.SeasonNumber)" class="seasonToggleLabel">@(season.SeasonNumber == 0 ? "Specials" : "Season " + season.SeasonNumber)</a>
|
2011-05-19 18:08:00 +03:00
|
|
|
</div>
|
2011-04-24 08:48:12 +03:00
|
|
|
}
|
2011-12-04 02:44:48 +03:00
|
|
|
</div>
|
2012-02-04 07:34:02 +03:00
|
|
|
@foreach (var s in Model.Seasons.OrderByDescending(a => a.SeasonNumber))
|
2011-12-04 02:44:48 +03:00
|
|
|
{
|
2012-02-05 06:27:29 +03:00
|
|
|
<div class="seasonSection" id="@string.Format("SeasonSection_{0}", s.SeasonNumber)">
|
|
|
|
@{
|
2012-02-05 06:41:21 +03:00
|
|
|
var season = s;
|
|
|
|
Html.RenderPartial("Season", season);
|
2012-02-05 06:27:29 +03:00
|
|
|
}
|
|
|
|
</div>
|
2011-12-04 02:44:48 +03:00
|
|
|
}
|
2011-04-21 10:14:47 +03:00
|
|
|
@section Scripts{
|
2011-12-09 07:57:23 +03:00
|
|
|
@Html.IncludeScript("NzbDrone/seriesDetails.js")
|
2011-04-21 10:14:47 +03:00
|
|
|
<script type="text/javascript">
|
2011-08-04 04:45:45 +03:00
|
|
|
seriesId = @Model.SeriesId;
|
2010-10-30 05:46:32 +03:00
|
|
|
</script>
|
2011-04-21 10:14:47 +03:00
|
|
|
}
|