@model SeriesModel @using NzbDrone.Web.Models @section TitleContent{ @Model.Title } @section ActionMenu{ }
@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(c => c.EpisodeNumber).Width(50).Title("Episode"); columns.Bound(c => c.Title).Title("Title"); columns.Bound(c => c.AirDate).Width(100); columns.Bound(c => c.Quality).Width(100); columns.Bound(c => c.Status) .Title("" + "Status" + "Search" + "Rename") .ClientTemplate("" + "<#= Status #>" + "\" onclick=\"searchForEpisode('<#= EpisodeId #>'); return false;\">Search" + "\" onclick=\"renameEpisode('<#= EpisodeFileId #>'); return false;\">Rename") .Width(80); }) .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{ }