2011-04-21 06:18:28 +00:00
|
|
|
@model List<NzbDrone.Web.Models.UpcomingEpisodeModel>
|
|
|
|
@using NzbDrone.Web.Models
|
|
|
|
@section TitleContent{
|
2011-04-25 20:32:29 +00:00
|
|
|
Upcoming
|
2011-04-21 06:18:28 +00:00
|
|
|
}
|
|
|
|
@section ActionMenu{
|
|
|
|
@{Html.Telerik().Menu().Name("historyMenu").Items(
|
|
|
|
items => { items.Add().Text("Start RSS Sync").Action("RssSync", "Series"); }).Render();}
|
|
|
|
}
|
|
|
|
@section MainContent{
|
2011-03-23 23:41:38 +00:00
|
|
|
<div id="yesterday">
|
2011-04-25 20:32:29 +00:00
|
|
|
<h2>
|
|
|
|
Yesterday</h2>
|
2011-04-21 06:18:28 +00:00
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
|
2011-04-10 02:44:01 +00:00
|
|
|
"No watched shows aired yesterday")
|
2011-04-21 06:18:28 +00:00
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
2011-04-10 02:44:01 +00:00
|
|
|
.Columns(columns =>
|
|
|
|
{
|
|
|
|
columns.Bound(c => c.SeriesName)
|
|
|
|
.ClientTemplate("<a href=" +
|
2011-04-25 20:32:29 +00:00
|
|
|
Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) +
|
2011-04-10 02:44:01 +00:00
|
|
|
"><#= SeriesName #></a>")
|
2011-04-25 20:32:29 +00:00
|
|
|
.Title("Series Name");
|
2011-04-10 02:44:01 +00:00
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40);
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40);
|
2011-04-25 20:32:29 +00:00
|
|
|
columns.Bound(c => c.Title).Title("Episode Title");
|
2011-04-27 02:47:29 +00:00
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(160);
|
2011-04-10 02:44:01 +00:00
|
|
|
})
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
"<fieldset>" +
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"</fieldset>"
|
|
|
|
))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
2011-04-25 20:32:29 +00:00
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
//.Filterable()
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
2011-04-21 06:18:28 +00:00
|
|
|
.Render();}
|
2011-03-23 23:41:38 +00:00
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div id="today">
|
2011-04-25 20:32:29 +00:00
|
|
|
<h2>
|
|
|
|
Today</h2>
|
2011-04-21 06:18:28 +00:00
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
2011-04-10 02:44:01 +00:00
|
|
|
.Columns(columns =>
|
|
|
|
{
|
|
|
|
columns.Bound(c => c.SeriesName)
|
|
|
|
.ClientTemplate("<a href=" +
|
2011-04-25 20:32:29 +00:00
|
|
|
Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) +
|
2011-04-10 02:44:01 +00:00
|
|
|
"><#= SeriesName #></a>")
|
2011-04-25 20:32:29 +00:00
|
|
|
.Title("Series Name");
|
2011-04-10 02:44:01 +00:00
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40);
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40);
|
2011-04-25 20:32:29 +00:00
|
|
|
columns.Bound(c => c.Title).Title("Episode Title");
|
2011-04-27 02:47:29 +00:00
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(160);
|
2011-04-10 02:44:01 +00:00
|
|
|
})
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
"<fieldset>" +
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"</fieldset>"
|
|
|
|
))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
2011-04-21 06:18:28 +00:00
|
|
|
.Render();}
|
2011-03-23 23:41:38 +00:00
|
|
|
</div>
|
|
|
|
<br />
|
2011-04-27 23:51:38 +00:00
|
|
|
<div id="tomorrow">
|
|
|
|
<h2>
|
|
|
|
Tomorrow</h2>
|
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Tomorrow").NoRecordsTemplate(
|
|
|
|
"No watched shows airing tomorrow")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.Columns(columns =>
|
|
|
|
{
|
|
|
|
columns.Bound(c => c.SeriesName)
|
|
|
|
.ClientTemplate("<a href=" +
|
|
|
|
Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) +
|
|
|
|
"><#= SeriesName #></a>")
|
|
|
|
.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");
|
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(160);
|
|
|
|
})
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
"<fieldset>" +
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"</fieldset>"
|
|
|
|
))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingTomorrow", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.Render();}
|
|
|
|
</div>
|
|
|
|
<br />
|
2011-03-23 23:41:38 +00:00
|
|
|
<div id="week">
|
2011-04-25 20:32:29 +00:00
|
|
|
<h2>
|
2011-04-27 23:51:38 +00:00
|
|
|
Future Forecast</h2>
|
2011-04-21 06:18:28 +00:00
|
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
|
2011-04-10 02:44:01 +00:00
|
|
|
"No watched shows airing in the next week...")
|
2011-04-21 06:18:28 +00:00
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
2011-04-10 02:44:01 +00:00
|
|
|
.Columns(columns =>
|
|
|
|
{
|
|
|
|
columns.Bound(c => c.SeriesName)
|
|
|
|
.ClientTemplate("<a href=" +
|
2011-04-25 20:32:29 +00:00
|
|
|
Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) +
|
2011-04-10 02:44:01 +00:00
|
|
|
"><#= SeriesName #></a>")
|
2011-04-25 20:32:29 +00:00
|
|
|
.Title("Series Name");
|
2011-04-10 02:44:01 +00:00
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40);
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40);
|
2011-04-25 20:32:29 +00:00
|
|
|
columns.Bound(c => c.Title).Title("Episode Title");
|
2011-04-27 02:47:29 +00:00
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(160);
|
2011-04-10 02:44:01 +00:00
|
|
|
})
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
"<fieldset>" +
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
"</fieldset>"
|
|
|
|
))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
2011-04-21 06:18:28 +00:00
|
|
|
.Render();}
|
2011-03-23 23:41:38 +00:00
|
|
|
</div>
|
2011-04-25 20:32:29 +00:00
|
|
|
}
|