@model List @using NzbDrone.Web.Helpers @using NzbDrone.Web.Models @section TitleContent{ Upcoming } @section HeaderContent { @Html.IncludeCss("Grid.css") } @section ActionMenu{ }

Yesterday

@{Html.Telerik().Grid().Name("Yesterday").NoRecordsTemplate( "No watched shows aired yesterday") .TableHtmlAttributes(new { @class = "Grid" }) .Columns(columns => { columns.Bound(c => c.SeriesTitle) .ClientTemplate("<#= SeriesTitle #>") .Title("Series Title"); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40); columns.Bound(c => c.Title).Title("Episode Title").Width(350); columns.Bound(c => c.AirDateTime).Title("Air Time") .ClientTemplate("<#= AirTime #>") .Width(160); columns.Bound(c => c.Status) .ClientTemplate("<#= Status #>" + "\" onclick=\"searchForEpisode('<#= EpisodeId #>'); return false;\">Search" ).Width(100); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true)) .Render();}

Today

@{Html.Telerik().Grid().Name("Today").NoRecordsTemplate("No watched shows airing today.") .TableHtmlAttributes(new { @class = "Grid" }) .Columns(columns => { columns.Bound(c => c.SeriesTitle) .ClientTemplate("<#= SeriesTitle #>") .Title("Series Name"); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40); columns.Bound(c => c.Title).Title("Episode Title").Width(350); columns.Bound(c => c.AirDateTime).Title("Air Time") .ClientTemplate("<#= AirTime #>") .Width(160); columns.Bound(c => c.Status) .ClientTemplate("<#= Status #>" + "\" onclick=\"searchForEpisode('<#= EpisodeId #>'); return false;\">Search" ).Width(100); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true)) .Render();}

Tomorrow

@{Html.Telerik().Grid().Name("Tomorrow").NoRecordsTemplate( "No watched shows airing tomorrow") .TableHtmlAttributes(new { @class = "Grid" }) .Columns(columns => { columns.Bound(c => c.SeriesTitle) .ClientTemplate("<#= SeriesTitle #>") .Title("Series Name"); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40); columns.Bound(c => c.Title).Title("Episode Title").Width(350); columns.Bound(c => c.AirDateTime).Title("Air Time") .ClientTemplate("<#= AirTime #>") .Width(160); columns.Bound(c => c.Status) .ClientTemplate("<#= Status #>" + "\" onclick=\"searchForEpisode('<#= EpisodeId #>'); return false;\">Search" ).Width(100); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBindingTomorrow", "Upcoming")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true)) .Render();}

Future Forecast

@{Html.Telerik().Grid().Name("Week").NoRecordsTemplate( "No watched shows airing in the next week...") .TableHtmlAttributes(new { @class = "Grid" }) .Columns(columns => { columns.Bound(c => c.SeriesTitle) .ClientTemplate("<#= SeriesTitle #>") .Title("Series Name"); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40); columns.Bound(c => c.Title).Title("Episode Title").Width(350); columns.Bound(c => c.AirDateTime).Title("Air Date/Time") .ClientTemplate("<#= AirDate #> at <#= AirTime #>") .Width(160); columns.Bound(c => c.Status) .ClientTemplate("<#= Status #>" + "\" onclick=\"searchForEpisode('<#= EpisodeId #>'); return false;\">Search" ).Width(100); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true)) .Render();}