@model NzbDrone.Web.Models.SeriesModel @using NzbDrone.Core.Repository @using NzbDrone.Web.Models @section TitleContent{ @Model.Title } @section ActionMenu{ } @section MainContent{
@foreach (var season in Model.Seasons) { var ignoreSeason = "ignoreSeason_" + season;
@(season == 0 ? "Specials" : "Season " + season)
}
@foreach (var s in Model.Seasons.Reverse()) { var seriesId = @Model.SeriesId; var season = s;

@(season == 0 ? "Specials" : "Season " + season)

@{ Html.Telerik().Grid().Name("seasons_" + season) .TableHtmlAttributes(new { @class = "Grid" }) .Columns(columns => { columns.Bound(o => o.Ignored) .Title("") .ClientTemplate( "") .Width(20) .HtmlAttributes(new { style = "text-align:center" }); columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode"); columns.Bound(c => c.Title).Title("Title"); columns.Bound(c => c.AirDate).Width(0); columns.Bound(c => c.Quality).Width(0); columns.Bound(c => c.Status) .ClientTemplate("<#= Status #>") .Width(20) .HtmlAttributes(new { style = "text-align:center" }); columns.Bound(o => o.EpisodeId).Title("") .ClientTemplate("\" onclick=\"searchForEpisode('<#= EpisodeId #>'); return false;\">Search" + " | " + "\" onclick=\"renameEpisode('<#= EpisodeFileId #>'); return false;\">Rename" ); }) .DetailView(detailView => detailView.ClientTemplate("
<#= Overview #>
<#= Path #>
")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(false)) .Footer(true) .DataBinding( d => d.Ajax().Select("_AjaxSeasonGrid", "Series", new RouteValueDictionary { { "seriesId", Model.SeriesId }, { "seasonNumber", season } })) .ToolBar(toolbar => toolbar.Template(@ )) .ClientEvents(clientEvents => { clientEvents.OnRowDataBound("grid_rowBound"); clientEvents.OnDataBound("grid_dataBound"); }) .Render();}
} } @section Scripts{ }