2012-02-04 05:34:02 +01:00
@model SeriesDetailsModel
2012-02-07 07:47:02 +01:00
2011-12-09 05:57:23 +01:00
@using NzbDrone.Web.Helpers
2011-04-21 09:14:47 +02:00
@using NzbDrone.Web.Models
2012-02-07 07:47:02 +01:00
2011-12-09 05:57:23 +01:00
@section HeaderContent
{
2012-02-22 22:41:47 +01:00
@Html.IncludeCss("Settings.css")
<style>
.seasonToggleTopGroup
{
overflow: hidden;
}
2011-12-04 00:44:48 +01:00
2012-02-22 22:41:47 +01:00
.seasonToggleTop
{
2012-03-01 00:41:44 +01:00
background-color: #F0F5FF;
2012-02-22 22:41:47 +01: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 04:41:21 +01:00
2012-02-29 09:25:41 +01:00
.seasonToggleLabel:hover {
color: #065EFE;
}
2012-02-22 22:41:47 +01:00
.seasonToggleTop .ignoredEpisodesMaster
{
padding-left: 0px;
padding-right: 0px;
border-style: none;
}
2011-12-04 00:44:48 +01:00
2012-02-22 22:41:47 +01:00
#banner-container
{
width: 758px;
height: 140px;
padding: 0px;
margin-top: 10px;
margin-bottom: 15px;
margin-left: auto;
margin-right: auto;
}
2012-02-06 23:13:33 +01:00
2012-02-22 22:41:47 +01: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 04:27:29 +01:00
@section ActionMenu
{
2011-12-04 00:44:48 +01:00
<ul class="sub-menu">
2012-03-13 22:04:42 +01:00
<li><a class="editButton" value="@Model.SeriesId" rel="@Model.Title" title="Edit series">Edit</a></li>
<li>@Ajax.ActionLink("Force Refresh", "ForceRefresh", "Command", new { seriesId = Model.SeriesId }, null, new { Title = "Refresh episode and series information and scan for new episodes" })</li>
<li>@Ajax.ActionLink("Search for missing episodes", "BacklogSeries", "Episode", new { seriesId = Model.SeriesId }, null, new { Title = "Search for episodes missing from this series" })</li>
2012-07-21 06:46:16 +02:00
<li>@Ajax.ActionLink("Rename Episode Files", "RenameSeries", "Episode", new { seriesId = Model.SeriesId }, null, new { Title = "Rename all episode files to match your preferred naming" })</li>
2011-08-06 04:04:35 +02:00
</ul>
2011-04-21 09:14:47 +02:00
}
2011-12-01 06:25:01 +01:00
2012-02-05 05:34:56 +01:00
@if (Model.HasBanner)
{
var bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
<div id="banner-container">
<img src="@bannerUrl" alt="Banner"/>
</div>
}
2011-12-04 00:44:48 +01:00
<div class="seasonToggleTopGroup">
2012-02-04 08:36:52 +01:00
@foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber))
2011-04-24 07:48:12 +02:00
{
2011-12-04 00:44:48 +01:00
<div class="seasonToggleTop">
2012-10-01 01:06:59 +02:00
<img src="../../Content/Images/@(season.Ignored ? "ignored" : "notIgnored").png"
class="ignoredEpisodesMaster ignoreEpisode @(season.Ignored ? " ignored" : " ") gridAction"
title="Click to toggle season ignore status"
data-season="@season.SeasonNumber"/>
2012-02-05 04:27:29 +01:00
<a href="@string.Format("#SeasonSection_{0}", season.SeasonNumber)" class="seasonToggleLabel">@(season.SeasonNumber == 0 ? "Specials" : "Season " + season.SeasonNumber)</a>
2011-05-19 17:08:00 +02:00
</div>
2011-04-24 07:48:12 +02:00
}
2011-12-04 00:44:48 +01:00
</div>
2012-02-04 05:34:02 +01:00
@foreach (var s in Model.Seasons.OrderByDescending(a => a.SeasonNumber))
2011-12-04 00:44:48 +01:00
{
2012-02-05 04:27:29 +01:00
<div class="seasonSection" id="@string.Format("SeasonSection_{0}", s.SeasonNumber)">
@{
2012-02-05 04:41:21 +01:00
var season = s;
Html.RenderPartial("Season", season);
2012-02-05 04:27:29 +01:00
}
</div>
2011-12-04 00:44:48 +01:00
}
2012-02-22 22:41:47 +01:00
<div style="visibility: hidden">
<div id="seriesEditor" title="Edit Series">
</div>
2012-09-04 02:51:07 +02:00
<div id="seriesDelete" title="Delete Series">
<input class="seriesId" type="hidden" value="" />
Are you sure you want to delete '<span class="seriesTitle"></span>'?
<div class="series-delete-files">
@Html.CheckBox("DeleteFilesFromDisk")
<label for="DeleteFilesFromDisk">Delete all files from disk?</label>
</div>
</div>
2012-09-04 01:26:52 +02:00
<div id="qualityChanger" title="Change Quality">
<label for="NewQuality">New Quality</label>
@Html.DropDownList("NewQuality", Model.QualitySelectList)
</div>
</div>
2011-04-21 09:14:47 +02:00
@section Scripts{
2011-12-09 05:57:23 +01:00
@Html.IncludeScript("NzbDrone/seriesDetails.js")
2012-02-22 22:41:47 +01:00
@Html.IncludeScript("NzbDrone/series.js")
2011-04-21 09:14:47 +02:00
<script type="text/javascript">
2011-08-04 03:45:45 +02:00
seriesId = @Model.SeriesId;
2012-02-22 22:41:47 +01:00
//Used when we delete this series
function afterDelete(seriesId) {
window.location = "/";
}
//After we save do this...
function afterSave() {
//Do nothing
}
2010-10-30 04:46:32 +02:00
</script>
2011-04-21 09:14:47 +02:00
}