2011-09-11 02:01:15 +03:00
|
|
|
@model SeriesModel
|
2011-12-09 07:57:23 +03:00
|
|
|
@using NzbDrone.Web.Helpers
|
2011-04-21 10:14:47 +03:00
|
|
|
@using NzbDrone.Web.Models
|
|
|
|
@section TitleContent{
|
|
|
|
@Model.Title
|
|
|
|
}
|
2011-12-09 07:57:23 +03:00
|
|
|
@section HeaderContent
|
|
|
|
{
|
|
|
|
@Html.IncludeCss("Grid.css")
|
|
|
|
}
|
2011-12-04 02:44:48 +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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.seasonToggleTop .ignoredEpisodesMaster
|
|
|
|
{
|
|
|
|
padding-left: 0px;
|
|
|
|
padding-right: 0px;
|
|
|
|
margin-bottom: -4px;
|
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;
|
2011-08-23 06:52:08 +03:00
|
|
|
padding: 1px;
|
|
|
|
margin: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchImage:hover, .renameImage:hover, .ignoreEpisode:hover, .ignoreEpisodesMaster:hover
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2011-08-03 10:26:39 +03:00
|
|
|
</style>
|
2011-04-21 10:14:47 +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">
|
|
|
|
@foreach (var season in Model.Seasons)
|
2011-04-24 08:48:12 +03:00
|
|
|
{
|
2011-12-04 02:44:48 +03:00
|
|
|
var ignoreSeason = "ignoreSeason_" + season;
|
|
|
|
<div class="seasonToggleTop">
|
|
|
|
<img src='../../Content/Images/ignoredNeutral.png' class='ignoredEpisodesMaster ignoreEpisode @ignoreSeason' title='Click to toggle season ignore status' />
|
|
|
|
<span class="seasonToggleLabel">@(season == 0 ? "Specials" : "Season " + season)</span>
|
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>
|
|
|
|
@foreach (var s in Model.Seasons.Reverse())
|
|
|
|
{
|
|
|
|
var seriesId = @Model.SeriesId;
|
|
|
|
var season = s;
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
@(season == 0 ? "Specials" : "Season " + season)
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
Html.Telerik().Grid<EpisodeModel>().Name("seasons_" + season)
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.Columns(columns =>
|
|
|
|
{
|
2011-12-08 09:28:52 +03:00
|
|
|
columns.Bound(c => c.EpisodeNumber).Width(100).Title("Episode #").Sortable(true);
|
2011-12-04 02:44:48 +03:00
|
|
|
columns.Bound(c => c.Title).Title("Title").Sortable(false);
|
|
|
|
columns.Bound(c => c.AirDate).Width(100).Sortable(false);
|
|
|
|
columns.Bound(c => c.Quality).Width(100);
|
|
|
|
columns.Bound(c => c.Status).Sortable(false)
|
|
|
|
.Title("<img src='../../Content/Images/ignoredNeutral.png' class='ignoredEpisodesMaster ignoreEpisode ignoreSeason_" + season + "' title='Click to toggle season ignore status' />" +
|
|
|
|
"<img src='../../Content/Images/Missing.png' alt='Status' title='Season Status' class='statusImage statusImageMaster' />" +
|
|
|
|
"<a href=\"../Episode/SearchSeason?seriesId=" + @seriesId + "&seasonNumber=" + @season + "\" onclick=\"searchSeason(" + @seriesId + ", " + @season + "); return false;\"><img src='../../Content/Images/Search.png' alt='Search' title='Search for all episodes in this season' class='searchImage searchImageMaster' /></a>" +
|
|
|
|
"<a href=\"../Episode/RenameSeason?seriesId=" + @seriesId + "&seasonNumber=" + @season + "\" onclick=\"renameSeason(" + @seriesId + ", " + @season + "); return false;\"><img src='../../Content/Images/Rename.png' alt='Rename' title='Rename all episodes in this season' class=renameImage renameImageMaster' /></a>")
|
|
|
|
.ClientTemplate("<img src='../../Content/Images/ignoredNeutral.png' class='ignoreEpisode ignoreEpisode_" + season + " ignored' id='<#= EpisodeId #>' title='Click to toggle episode ignore status' />" +
|
|
|
|
"<img src='../../Content/Images/<#= Status #>.png' alt='<#= Status #>' title='<#= Status #>' class='statusImage status-<#= Status #>' />" +
|
|
|
|
"<a href=\"../Episode/Season?episodeId=<#= EpisodeId #>\" onclick=\"searchForEpisode('<#= EpisodeId #>'); return false;\"><img src='../../Content/Images/Search.png' alt='Search' title='Search for episode' class='searchImage' /></a>" +
|
|
|
|
"<a href=\"../Episode/Rename?episodeFileId=<#= EpisodeId #>\" onclick=\"renameEpisode('<#= EpisodeFileId #>'); return false;\"><img src='../../Content/Images/Rename.png' alt='Rename' title='Rename episode' class='renameImage' />")
|
|
|
|
.Width(80);
|
|
|
|
})
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate("<div><#= Overview #> </br><#= Path #> </div>"))
|
|
|
|
.Footer(true)
|
|
|
|
.DataBinding(
|
|
|
|
d =>
|
|
|
|
d.Ajax().Select("_AjaxSeasonGrid", "Series",
|
|
|
|
new RouteValueDictionary { { "seriesId", Model.SeriesId }, { "seasonNumber", season } }))
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
{
|
|
|
|
clientEvents.OnRowDataBound("grid_rowBound");
|
|
|
|
clientEvents.OnDataBound("grid_dataBound");
|
|
|
|
})
|
|
|
|
.Sortable(sorting => sorting
|
|
|
|
.OrderBy(sortOrder => sortOrder.Add(o => o.EpisodeNumber).Descending()).SortMode(GridSortMode.SingleColumn))
|
|
|
|
.Render();
|
|
|
|
}
|
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
|
|
|
}
|