|
|
@ -31,69 +31,94 @@
|
|
|
|
<%
|
|
|
|
<%
|
|
|
|
Html.Telerik().Menu().Name("historyMenu").Items(items =>
|
|
|
|
Html.Telerik().Menu().Name("historyMenu").Items(items =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
items.Add().Text("Trim History").Action("Trim", "History");
|
|
|
|
items.Add().Text("Start RSS Sync").Action("RssSync", "Series");
|
|
|
|
items.Add().Text("Purge History").Action("Purge", "History");
|
|
|
|
|
|
|
|
}).Render();
|
|
|
|
}).Render();
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
</asp:Content>
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
<%Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate("No watched shows aired yesterday")
|
|
|
|
|
|
|
|
.Columns(columns =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
columns.Bound(c => c.SeriesName).Title("Series Name").Width(110);
|
|
|
|
|
|
|
|
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(120);
|
|
|
|
|
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(0);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>"
|
|
|
|
|
|
|
|
))
|
|
|
|
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming"))
|
|
|
|
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
|
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
|
|
|
|
//.Filterable()
|
|
|
|
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
|
|
|
|
.Render();
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
|
|
|
<div id="yesterday">
|
|
|
|
.Columns(columns =>
|
|
|
|
<h2>Yesterday</h2>
|
|
|
|
{
|
|
|
|
<%Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate("No watched shows aired yesterday")
|
|
|
|
columns.Bound(c => c.SeriesName).Title("Series Name").Width(110);
|
|
|
|
.Columns(columns =>
|
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40);
|
|
|
|
{
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40);
|
|
|
|
columns.Bound(c => c.SeriesName)
|
|
|
|
columns.Bound(c => c.Title).Title("Episode Title").Width(120);
|
|
|
|
.ClientTemplate("<a href=" + Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) + "><#= SeriesName #></a>")
|
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(0);
|
|
|
|
.Title("Series Name").Width(110);
|
|
|
|
})
|
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40);
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40);
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>"
|
|
|
|
columns.Bound(c => c.Title).Title("Episode Title").Width(120);
|
|
|
|
))
|
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(0);
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming"))
|
|
|
|
})
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
"<fieldset>" +
|
|
|
|
//.Filterable()
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
"</fieldset>"
|
|
|
|
.Render();
|
|
|
|
))
|
|
|
|
%>
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming"))
|
|
|
|
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
|
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
|
|
|
|
//.Filterable()
|
|
|
|
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
|
|
|
|
.Render();
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<%Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate("No watched shows airing in the next week...")
|
|
|
|
<br />
|
|
|
|
.Columns(columns =>
|
|
|
|
|
|
|
|
{
|
|
|
|
<div id="today">
|
|
|
|
columns.Bound(c => c.SeriesName).Title("Series Name").Width(110);
|
|
|
|
<h2>Today</h2>
|
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40);
|
|
|
|
<%Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40);
|
|
|
|
.Columns(columns =>
|
|
|
|
columns.Bound(c => c.Title).Title("Episode Title").Width(120);
|
|
|
|
{
|
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(0);
|
|
|
|
columns.Bound(c => c.SeriesName)
|
|
|
|
})
|
|
|
|
.ClientTemplate("<a href=" + Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) + "><#= SeriesName #></a>")
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
.Title("Series Name").Width(110);
|
|
|
|
"<div><b>Overview: </b><#= Overview #></div>"
|
|
|
|
columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40);
|
|
|
|
))
|
|
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40);
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming"))
|
|
|
|
columns.Bound(c => c.Title).Title("Episode Title").Width(120);
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(0);
|
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
})
|
|
|
|
//.Filterable()
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
"<fieldset>" +
|
|
|
|
.Render();
|
|
|
|
"<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))
|
|
|
|
|
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
|
|
|
|
//.Filterable()
|
|
|
|
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
|
|
|
|
.Render();
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="week">
|
|
|
|
|
|
|
|
<h2>7-Day Forecast</h2>
|
|
|
|
|
|
|
|
<%Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate("No watched shows airing in the next week...")
|
|
|
|
|
|
|
|
.Columns(columns =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
columns.Bound(c => c.SeriesName)
|
|
|
|
|
|
|
|
.ClientTemplate("<a href=" + Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) + "><#= SeriesName #></a>")
|
|
|
|
|
|
|
|
.Title("Series Name").Width(110);
|
|
|
|
|
|
|
|
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(120);
|
|
|
|
|
|
|
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(0);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.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))
|
|
|
|
|
|
|
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
|
|
|
|
//.Filterable()
|
|
|
|
|
|
|
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
|
|
|
|
.Render();
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</asp:Content>
|
|
|
|
</asp:Content>
|
|
|
|