You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
6.5 KiB
127 lines
6.5 KiB
14 years ago
|
@model List<NzbDrone.Web.Models.UpcomingEpisodeModel>
|
||
|
@using NzbDrone.Web.Models
|
||
|
|
||
|
@section Scripts{
|
||
14 years ago
|
|
||
|
<script type="text/javascript">
|
||
|
function onRowDataBound(e) {
|
||
|
e.row.style.boarder = "";
|
||
|
|
||
|
if (e.dataItem.Level == 3) {
|
||
|
e.row.style.backgroundColor = "#FFD700";
|
||
|
}
|
||
|
else if (e.dataItem.Level == 4) {
|
||
|
e.row.style.backgroundColor = "#FF7500";
|
||
|
}
|
||
|
else if (e.dataItem.Level == 5) {
|
||
|
e.row.style.backgroundColor = "black";
|
||
|
e.row.style.color = "red";
|
||
|
}
|
||
|
//e.row.style.color = 'blue';
|
||
|
}
|
||
|
</script>
|
||
14 years ago
|
}
|
||
|
|
||
|
@section TitleContent{
|
||
14 years ago
|
Upcoming
|
||
14 years ago
|
}
|
||
|
|
||
|
@section ActionMenu{
|
||
|
@{Html.Telerik().Menu().Name("historyMenu").Items(
|
||
|
items => { items.Add().Text("Start RSS Sync").Action("RssSync", "Series"); }).Render();}
|
||
|
}
|
||
14 years ago
|
|
||
14 years ago
|
@section MainContent{
|
||
14 years ago
|
<div id="yesterday">
|
||
|
<h2>Yesterday</h2>
|
||
14 years ago
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
|
||
14 years ago
|
"No watched shows aired yesterday")
|
||
14 years ago
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||
14 years ago
|
.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("_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"))
|
||
14 years ago
|
.Render();}
|
||
14 years ago
|
</div>
|
||
14 years ago
|
|
||
14 years ago
|
<br />
|
||
|
|
||
|
<div id="today">
|
||
|
<h2>Today</h2>
|
||
14 years ago
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
||
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||
14 years ago
|
.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("_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"))
|
||
14 years ago
|
.Render();}
|
||
14 years ago
|
</div>
|
||
|
|
||
|
<br />
|
||
|
|
||
|
<div id="week">
|
||
|
<h2>7-Day Forecast</h2>
|
||
14 years ago
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
|
||
14 years ago
|
"No watched shows airing in the next week...")
|
||
14 years ago
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||
14 years ago
|
.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"))
|
||
14 years ago
|
.Render();}
|
||
14 years ago
|
</div>
|
||
14 years ago
|
}
|