<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <%@ Import Namespace="Telerik.Web.Mvc.UI" %> <%@ Import Namespace="NzbDrone.Core.Repository" %> <%: Model.Title %>
ID
<%: Model.SeriesId %>
Overview
<%: Model.Overview %>
Status
<%: Model.Status %>
AirTimes
<%: Model.AirTimes %>
Language
<%: Model.Language.ToUpper() %>
Location
<%: Model.Path %>
<% //Normal Seasons foreach (var season in Model.Seasons.Where(s => s.SeasonNumber > 0)) { %>

Season <%: season.SeasonNumber %>

<% Html.Telerik().Grid(season.Episodes).Name("seasons_" + season.SeasonNumber) .Columns(columns => { columns.Bound(c => c.SeasonNumber).Width(0).Title("Seasons"); columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode"); columns.Bound(c => c.Title); columns.Bound(c => c.AirDate).Format("{0:d}").Width(0); }) .DetailView(detailView => detailView.Template(e => Html.RenderPartial("EpisodeDetail", e))) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false)) .Footer(false) .Render(); } //Specials var specialSeasons = Model.Seasons.Where(s => s.SeasonNumber == 0).FirstOrDefault(); if (specialSeasons != null) { %>

Specials

<% Html.Telerik().Grid(specialSeasons.Episodes).Name("seasons_specials") .Columns(columns => { columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode"); columns.Bound(c => c.Title); columns.Bound(c => c.AirDate).Format("{0:d}").Width(0); }) .DetailView(detailView => detailView.Template(e => Html.RenderPartial("EpisodeDetail", e))) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false)) .Footer(false) .Render(); } %>

<%-- <%: Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) %> |--%> <%: Html.ActionLink("Back to Series", "Index") %>