2012-02-04 07:34:02 +03:00
|
|
|
@model SeriesDetailsModel
|
2012-02-07 09:47:02 +03:00
|
|
|
|
2011-12-09 07:57:23 +03:00
|
|
|
@using NzbDrone.Web.Helpers
|
2011-04-21 10:14:47 +03:00
|
|
|
@using NzbDrone.Web.Models
|
2012-02-07 09:47:02 +03:00
|
|
|
|
2011-12-09 07:57:23 +03:00
|
|
|
@section HeaderContent
|
|
|
|
{
|
2012-02-23 00:41:47 +03:00
|
|
|
@Html.IncludeCss("Settings.css")
|
2011-12-09 07:57:23 +03:00
|
|
|
@Html.IncludeCss("Grid.css")
|
2011-08-20 06:02:47 +03:00
|
|
|
|
2012-02-23 00:41:47 +03:00
|
|
|
<style>
|
|
|
|
.seasonToggleTopGroup
|
|
|
|
{
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2011-12-04 02:44:48 +03:00
|
|
|
|
2012-02-23 00:41:47 +03:00
|
|
|
.seasonToggleTop
|
|
|
|
{
|
2012-03-01 02:16:50 +03:00
|
|
|
background-color: #E1EAF5;
|
2012-02-23 00:41:47 +03:00
|
|
|
background-position: 5px center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 15px;
|
|
|
|
margin: 2px;
|
|
|
|
padding: 2px 5px;
|
|
|
|
width: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.seasonToggleLabel
|
|
|
|
{
|
|
|
|
margin-left: 5px;
|
|
|
|
color: black;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2012-02-05 06:41:21 +03:00
|
|
|
|
2012-02-29 11:25:41 +03:00
|
|
|
.seasonToggleLabel:hover {
|
|
|
|
color: #065EFE;
|
|
|
|
}
|
|
|
|
|
2012-02-23 00:41:47 +03:00
|
|
|
.seasonToggleTop .ignoredEpisodesMaster
|
|
|
|
{
|
|
|
|
padding-left: 0px;
|
|
|
|
padding-right: 0px;
|
|
|
|
border-style: none;
|
|
|
|
}
|
2011-12-04 02:44:48 +03:00
|
|
|
|
2012-02-23 00:41:47 +03:00
|
|
|
#banner-container
|
|
|
|
{
|
|
|
|
width: 758px;
|
|
|
|
height: 140px;
|
|
|
|
padding: 0px;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
2012-02-07 01:13:33 +03:00
|
|
|
|
2012-02-23 00:41:47 +03:00
|
|
|
.seasonSection
|
|
|
|
{
|
|
|
|
margin-top: 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-dialog-buttonpane .ui-dialog-buttonset .ui-delete-button
|
|
|
|
{
|
|
|
|
margin-right: 445px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
}
|
|
|
|
@{ ViewBag.Title = Model.Title; }
|
|
|
|
|
2012-02-05 06:27:29 +03:00
|
|
|
@section ActionMenu
|
|
|
|
{
|
2011-12-04 02:44:48 +03:00
|
|
|
<ul class="sub-menu">
|
2012-02-23 00:41:47 +03:00
|
|
|
<li><a class="editButton" value="@Model.SeriesId" rel="@Model.Title">Edit</a></li>
|
2012-02-26 12:32:39 +03:00
|
|
|
<li>@Ajax.ActionLink("Force Refresh", "ForceRefresh", "Command", new { seriesId = Model.SeriesId }, null)</li>
|
|
|
|
<li>@Ajax.ActionLink("Search for missing episodes", "BacklogSeries", "Episode", new { seriesId = Model.SeriesId }, null)</li>
|
|
|
|
<li>@Ajax.ActionLink("Rename Episode Files", "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-01 08:25:01 +03:00
|
|
|
|
2012-02-05 07:34:56 +03:00
|
|
|
@if (Model.HasBanner)
|
|
|
|
{
|
|
|
|
var bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
|
|
|
|
<div id="banner-container">
|
|
|
|
<img src="@bannerUrl" alt="Banner"/>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
|
2011-12-04 02:44:48 +03:00
|
|
|
<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-21 09:50:38 +03:00
|
|
|
<img src='../../Content/Images/@(season.Ignored ? "ignored" : "notIgnored").png'
|
2012-02-25 22:41:48 +03:00
|
|
|
class='ignoredEpisodesMaster ignoreEpisode @ignoreSeason@(season.Ignored ? " ignored" : " ") gridAction'
|
2012-02-04 10:36:52 +03:00
|
|
|
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
|
|
|
}
|
2012-02-23 00:41:47 +03:00
|
|
|
|
|
|
|
<div style="visibility: hidden">
|
|
|
|
<div id="seriesEditor" title="Edit Series">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-04-21 10:14:47 +03:00
|
|
|
@section Scripts{
|
2011-12-09 07:57:23 +03:00
|
|
|
@Html.IncludeScript("NzbDrone/seriesDetails.js")
|
2012-02-23 00:41:47 +03:00
|
|
|
@Html.IncludeScript("NzbDrone/series.js")
|
|
|
|
|
2011-04-21 10:14:47 +03:00
|
|
|
<script type="text/javascript">
|
2011-08-04 04:45:45 +03:00
|
|
|
seriesId = @Model.SeriesId;
|
2012-02-23 00:41:47 +03:00
|
|
|
|
|
|
|
//Used when we delete this series
|
|
|
|
function afterDelete(seriesId) {
|
|
|
|
window.location = "/";
|
|
|
|
}
|
|
|
|
|
|
|
|
//After we save do this...
|
|
|
|
function afterSave() {
|
|
|
|
//Do nothing
|
|
|
|
}
|
2010-10-30 05:46:32 +03:00
|
|
|
</script>
|
2011-04-21 10:14:47 +03:00
|
|
|
}
|