mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
2e48034d70
sub-menu moved from id to class.
130 lines
7.5 KiB
Text
130 lines
7.5 KiB
Text
@model List<NzbDrone.Web.Models.UpcomingEpisodeModel>
|
|
@using NzbDrone.Web.Models
|
|
@section TitleContent{
|
|
Upcoming
|
|
}
|
|
@section ActionMenu{
|
|
<ul class="sub-menu">
|
|
<li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null)</li>
|
|
</ul>
|
|
}
|
|
@section MainContent{
|
|
<div id="yesterday">
|
|
<h2>Yesterday</h2>
|
|
<div class="grid-container">
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
|
|
"No watched shows aired yesterday")
|
|
.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("_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>
|
|
</div>
|
|
<br />
|
|
<div id="today">
|
|
<h2>Today</h2>
|
|
<div class="grid-container">
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
|
.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("_AjaxBindingToday", "Upcoming"))
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
.Render();}
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div id="tomorrow">
|
|
<h2>Tomorrow</h2>
|
|
<div class="grid-container">
|
|
@{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>
|
|
</div>
|
|
<br />
|
|
<div id="week">
|
|
<h2>Future Forecast</h2>
|
|
<div class="grid-container">
|
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
|
|
"No watched shows airing in the next week...")
|
|
.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("_AjaxBindingWeek", "Upcoming"))
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true))
|
|
.Render();}
|
|
</div>
|
|
</div>
|
|
}
|