1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-06 02:52:41 +01:00

Removed MainContent Section

This commit is contained in:
kay.one 2011-11-30 21:25:01 -08:00
parent 9841d7728e
commit 1cfc2f3fe4
13 changed files with 116 additions and 151 deletions

View File

@ -5,54 +5,50 @@ History
} }
@section ActionMenu{ @section ActionMenu{
<ul class="sub-menu"> <ul class="sub-menu">
<li>@Ajax.ActionLink("Trim History", "Trim", "History", new AjaxOptions{ OnSuccess = "reloadHistoryGrid" })</li> <li>@Ajax.ActionLink("Trim History", "Trim", "History", new AjaxOptions { OnSuccess = "reloadHistoryGrid" })</li>
<li>@Ajax.ActionLink("Purge History", "Purge", "History", new AjaxOptions { OnSuccess = "reloadHistoryGrid"})</li> <li>@Ajax.ActionLink("Purge History", "Purge", "History", new AjaxOptions { OnSuccess = "reloadHistoryGrid" })</li>
</ul> </ul>
} }
<link href="../../Content/Grid.css" rel="stylesheet" type="text/css" /> <link href="../../Content/Grid.css" rel="stylesheet" type="text/css" />
<div class="grid-container">
@section MainContent{ @{Html.Telerik().Grid<HistoryModel>().Name("history")
<div class="grid-container"> .TableHtmlAttributes(new { @class = "Grid" })
@{Html.Telerik().Grid<HistoryModel>().Name("history") .Columns(columns =>
.TableHtmlAttributes(new { @class = "Grid" }) {
.Columns(columns => columns.Bound(c => c.Indexer)
{ .ClientTemplate("<center><img alt='<#= Indexer #>' src='" + Url.Content("~/Content/Images/Indexers/") + "<#= Indexer #>.png' /></center>")
columns.Bound(c => c.Indexer) .Title("")
.ClientTemplate("<center><img alt='<#= Indexer #>' src='" + Url.Content("~/Content/Images/Indexers/") + "<#= Indexer #>.png' /></center>") .Width(20);
.Title("") columns.Bound(c => c.SeriesTitle)
.Width(20); .ClientTemplate("<a href=" +
columns.Bound(c => c.SeriesTitle) Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) +
.ClientTemplate("<a href=" + "><#= SeriesTitle #></a>")
Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) + .Title("Series Title");
"><#= SeriesTitle #></a>") columns.Bound(c => c.SeasonNumber).Title("Season").Width(1);
.Title("Series Title"); columns.Bound(c => c.EpisodeNumber).Title("Episode").Width(1);
columns.Bound(c => c.SeasonNumber).Title("Season").Width(1); columns.Bound(c => c.EpisodeTitle).Title("Episode Title");
columns.Bound(c => c.EpisodeNumber).Title("Episode").Width(1); columns.Bound(c => c.Quality).Title("Quality").Width(50);
columns.Bound(c => c.EpisodeTitle).Title("Episode Title"); columns.Bound(c => c.Date).Title("Grabbed on");
columns.Bound(c => c.Quality).Title("Quality").Width(50); columns.Bound(c => c.HistoryId)
columns.Bound(c => c.Date).Title("Grabbed on"); .Title("Actions")
columns.Bound(c => c.HistoryId) .ClientTemplate("<a href=\"../History/Delete?historyId=<#= HistoryId #>\" onclick=\"deleteHistoryRow(<#= HistoryId #>); return false;\"><img src='../../Content/Images/X.png' alt='Delete' title='Delete from History' class='searchImage' /></a>" +
.Title("Actions") "<a href=\"../History/Redownload?historyId=<#= HistoryId #>&episodeId=<#= EpisodeId #>\" onclick=\"redownload(<#= HistoryId #>, <#= EpisodeId #>); return false;\"><img src='../../Content/Images/Downloading.png' alt='Redownload' title='Redownload Episode' class='searchImage' /></a>")
.ClientTemplate("<a href=\"../History/Delete?historyId=<#= HistoryId #>\" onclick=\"deleteHistoryRow(<#= HistoryId #>); return false;\"><img src='../../Content/Images/X.png' alt='Delete' title='Delete from History' class='searchImage' /></a>" + .Width("40");
"<a href=\"../History/Redownload?historyId=<#= HistoryId #>&episodeId=<#= EpisodeId #>\" onclick=\"redownload(<#= HistoryId #>, <#= EpisodeId #>); return false;\"><img src='../../Content/Images/Downloading.png' alt='Redownload' title='Redownload Episode' class='searchImage' /></a>") })
.Width("40"); .DetailView(detailView => detailView.ClientTemplate(
}) "<fieldset>" +
.DetailView(detailView => detailView.ClientTemplate( "<div><b>Overview: </b><#= EpisodeOverview #></div>" +
"<fieldset>" + "<div><b>NZB Title: </b><#= NzbTitle #></div>" +
"<div><b>Overview: </b><#= EpisodeOverview #></div>" + "<div><b>Proper: </b><#= IsProper #></div>" +
"<div><b>NZB Title: </b><#= NzbTitle #></div>" + "</fieldset>"
"<div><b>Proper: </b><#= IsProper #></div>" + ))
"</fieldset>" .DataBinding(data => data.Ajax().Select("_AjaxBinding", "History"))
)) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Date).Descending()).Enabled(true))
.DataBinding(data => data.Ajax().Select("_AjaxBinding", "History")) .Pageable(
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Date).Descending()).Enabled(true)) c =>
.Pageable( c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
c => .Render();}
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) </div>
.Render();}
</div>
}
<script type="text/javascript"> <script type="text/javascript">
deleteHistoryRowUrl = '../History/Delete'; deleteHistoryRowUrl = '../History/Delete';
@ -84,4 +80,4 @@ History
} }
}); });
} }
</script> </script>

View File

@ -30,10 +30,9 @@ Logs
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
</div> </div>
} }
@section MainContent{ <div class="infoBox">
<div class="infoBox"> Log entries older than 30 days are automatically deleted.</div>
Log entries older than 30 days are automatically deleted.</div> @{Html.Telerik().Grid<Log>().Name("logsGrid")
@{Html.Telerik().Grid<Log>().Name("logsGrid")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
@ -52,9 +51,8 @@ Logs
.Pageable(paging => paging.Style(GridPagerStyles.Status).PageOnScroll(true).PageSize(100)) .Pageable(paging => paging.Style(GridPagerStyles.Status).PageOnScroll(true).PageSize(100))
.Filterable() .Filterable()
.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) .ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
.Scrollable(c=>c.Height(500)) .Scrollable(c => c.Height(500))
.Render();} .Render();}
}
<script type="text/javascript"> <script type="text/javascript">
function reloadGrid() { function reloadGrid() {
var grid = $('#logsGrid').data('tGrid'); var grid = $('#logsGrid').data('tGrid');

View File

@ -4,11 +4,10 @@ Misnamed
} }
@section ActionMenu{ @section ActionMenu{
<ul class="sub-menu"> <ul class="sub-menu">
<li>@Ajax.ActionLink("Trim History", "Trim", "History", new AjaxOptions{ OnSuccess = "reloadHistoryGrid" })</li> <li>@Ajax.ActionLink("Trim History", "Trim", "History", new AjaxOptions { OnSuccess = "reloadHistoryGrid" })</li>
<li>@Ajax.ActionLink("Purge History", "Purge", "History", new AjaxOptions { OnSuccess = "reloadHistoryGrid"})</li> <li>@Ajax.ActionLink("Purge History", "Purge", "History", new AjaxOptions { OnSuccess = "reloadHistoryGrid" })</li>
</ul> </ul>
} }
<style> <style>
.searchImage .searchImage
{ {
@ -26,10 +25,8 @@ Misnamed
background-color: #065EFE; background-color: #065EFE;
} }
</style> </style>
<div class="grid-container">
@section MainContent{ @{Html.Telerik().Grid<MisnamedEpisodeModel>().Name("misnamed")
<div class="grid-container">
@{Html.Telerik().Grid<MisnamedEpisodeModel>().Name("misnamed")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
@ -54,9 +51,7 @@ Misnamed
clientEvents.OnDataBound("grid_dataBound"); clientEvents.OnDataBound("grid_dataBound");
}) })
.Render();} .Render();}
</div> </div>
}
<script type="text/javascript"> <script type="text/javascript">
deleteHistoryRowUrl = '../History/Delete'; deleteHistoryRowUrl = '../History/Delete';
redownloadUrl = '../History/Redownload'; redownloadUrl = '../History/Redownload';
@ -94,4 +89,4 @@ Misnamed
var lastButton = $('#' + id + ' .t-arrow-last'); var lastButton = $('#' + id + ' .t-arrow-last');
lastButton.hide(); lastButton.hide();
} }
</script> </script>

View File

@ -1,21 +1,16 @@
@model List<MissingEpisodeModel> @model List<MissingEpisodeModel>
@using NzbDrone.Web.Models; @using NzbDrone.Web.Models;
@section TitleContent{ @section TitleContent{
Missing Missing
} }
<link href="../../Content/Grid.css" rel="stylesheet" type="text/css" /> <link href="../../Content/Grid.css" rel="stylesheet" type="text/css" />
@section ActionMenu{ @section ActionMenu{
<ul class="sub-menu"> <ul class="sub-menu">
<li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null)</li> <li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null)</li>
<li>@Ajax.ActionLink("Start Backlog Search", "BacklogSearch", "Command", null, null)</li> <li>@Ajax.ActionLink("Start Backlog Search", "BacklogSearch", "Command", null, null)</li>
</ul> </ul>
} }
@{Html.Telerik().Grid<MissingEpisodeModel>().Name("missing")
@section MainContent{
@{Html.Telerik().Grid<MissingEpisodeModel>().Name("missing")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
@ -51,4 +46,3 @@ Missing
c => c =>
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
.Render();} .Render();}
}

View File

@ -71,7 +71,7 @@
<li>@Ajax.ActionLink("Rename Episodes", "RenameEpisodes", "Episode", new { seriesId = Model.SeriesId }, null)</li> <li>@Ajax.ActionLink("Rename Episodes", "RenameEpisodes", "Episode", new { seriesId = Model.SeriesId }, null)</li>
</ul> </ul>
} }
@section MainContent{
<div id="banner-container"> <div id="banner-container">
@{ @{
var bannerUrl = "../../Content/Images/img03.jpg"; var bannerUrl = "../../Content/Images/img03.jpg";
@ -146,7 +146,7 @@
.Render();} .Render();}
</div> </div>
} }
}
@section Scripts{ @section Scripts{
<script type="text/javascript"> <script type="text/javascript">
seriesId = @Model.SeriesId; seriesId = @Model.SeriesId;

View File

@ -1,10 +1,8 @@
@using NzbDrone.Core.Helpers;
@using NzbDrone.Web.Models; @using NzbDrone.Web.Models;
@model IEnumerable<NzbDrone.Core.Repository.Series> @model IEnumerable<NzbDrone.Core.Repository.Series>
@section TitleContent{ @section TitleContent{
NzbDrone NzbDrone
} }
<style> <style>
/* progress bar container */ /* progress bar container */
.progressbar .progressbar
@ -47,16 +45,14 @@ NzbDrone
background: #E5ECF9; background: #E5ECF9;
} }
</style> </style>
@section ActionMenu{ @section ActionMenu{
<ul class="sub-menu"> <ul class="sub-menu">
<li>@Html.ActionLink("Add Series", "Index", "AddSeries")</li> <li>@Html.ActionLink("Add Series", "Index", "AddSeries")</li>
<li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null)</li> <li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null)</li>
</ul> </ul>
} }
@section MainContent{ <div class="grid-container">
<div class="grid-container"> @{Html.Telerik().Grid<SeriesModel>().Name("Grid")
@{Html.Telerik().Grid<SeriesModel>().Name("Grid")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.DataKeys(keys => keys.Add(p => p.SeriesId)) .DataKeys(keys => keys.Add(p => p.SeriesId))
.DataBinding(data => data.Ajax() .DataBinding(data => data.Ajax()
@ -89,7 +85,7 @@ NzbDrone
}) })
.Editable(editor => editor.Mode(GridEditMode.PopUp)) .Editable(editor => editor.Mode(GridEditMode.PopUp))
//.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(true)) //.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(true))
.DetailView(detailView => detailView.ClientTemplate( .DetailView(detailView => detailView.ClientTemplate(
"<b>Airs Day of Week:</b> " + "<#= AirsDayOfWeek #>" + "<b>Airs Day of Week:</b> " + "<#= AirsDayOfWeek #>" +
"<br />" + "<br />" +
@ -103,8 +99,7 @@ NzbDrone
clientEvents.OnRowDataBound("grid_rowBound"); clientEvents.OnRowDataBound("grid_rowBound");
}) })
.Render();} .Render();}
</div> </div>
}
@section Scripts{ @section Scripts{
<script type="text/javascript"> <script type="text/javascript">
var windowElement; var windowElement;
@ -128,7 +123,7 @@ NzbDrone
$("#progressbar_" + seriesId).episodeProgress(episodeFileCount, episodeCount); $("#progressbar_" + seriesId).episodeProgress(episodeFileCount, episodeCount);
} }
(function ($) { (function ($) {
$.fn.episodeProgress = function (episodes, totalEpisodes) { $.fn.episodeProgress = function (episodes, totalEpisodes) {
return this.each( return this.each(

View File

@ -10,15 +10,13 @@ Settings
}); });
</script> </script>
} }
@section MainContent{ <div id="tabs222">
<div id="tabs222"> <ul>
<ul> <li>@Html.ActionLink("Naming", "Naming", "Settings")</li>
<li>@Html.ActionLink("Naming", "Naming", "Settings")</li> <li>@Html.ActionLink("Indexers", "Indexers", "Settings")</li>
<li>@Html.ActionLink("Indexers", "Indexers", "Settings")</li> <li>@Html.ActionLink("Quality", "Quality", "Settings")</li>
<li>@Html.ActionLink("Quality", "Quality", "Settings")</li> <li>@Html.ActionLink("SABnzbd", "Sabnzbd", "Settings")</li>
<li>@Html.ActionLink("SABnzbd", "Sabnzbd", "Settings")</li> <li>@Html.ActionLink("Notifications", "Notifications", "Settings")</li>
<li>@Html.ActionLink("Notifications", "Notifications", "Settings")</li> <li>@Html.ActionLink("System", "System", "Settings")</li>
<li>@Html.ActionLink("System", "System", "Settings")</li> </ul>
</ul> </div>
</div>
}

View File

@ -1,15 +1,11 @@
@model HandleErrorInfo @model HandleErrorInfo
@section TitleContent @section TitleContent
{ {
EPIC FAIL!!! EPIC FAIL!!!
} }
@section MainContent <h2>
{ @Model.Exception.Message
<h2> </h2>
@Model.Exception.Message <br />
</h2> @Model.Exception.ToString()
<br />
@Model.Exception.ToString()
}

View File

@ -2,8 +2,7 @@
@section TitleContent{ @section TitleContent{
Configuration Configuration
} }
@section MainContent{ @(Html.Telerik().Grid<NzbDrone.Core.Repository.Config>()
@(Html.Telerik().Grid<NzbDrone.Core.Repository.Config>()
.Name("Grid") .Name("Grid")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.DataKeys(keys => .DataKeys(keys =>
@ -30,4 +29,3 @@ Configuration
.Editable(editing => editing.Mode(GridEditMode.InLine)) .Editable(editing => editing.Mode(GridEditMode.InLine))
.Sortable() .Sortable()
) )
}

View File

@ -2,8 +2,6 @@
@section TitleContent{ @section TitleContent{
Indexers Indexers
} }
@section MainContent{ @{Html.Telerik().Grid(Model).Name("Grid")
@{Html.Telerik().Grid(Model).Name("Grid")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Render();} .Render();}
}

View File

@ -1,10 +1,9 @@
@using System.Collections @using NzbDrone.Web.Models
@using NzbDrone.Web.Models
@model IEnumerable<NzbDrone.Core.Repository.JobDefinition> @model IEnumerable<NzbDrone.Core.Repository.JobDefinition>
@section TitleContent{ @section TitleContent{
Jobs Jobs
} }
@section MainContent{
@{Html.Telerik().Grid(Model).Name("Grid") @{Html.Telerik().Grid(Model).Name("Grid")
.Render();} .Render();}
@ -15,4 +14,4 @@ Jobs
.Columns(c => c.Bound(g => g.TargetId).Title("Target")) .Columns(c => c.Bound(g => g.TargetId).Title("Target"))
.Columns(c => c.Bound(g => g.SecondaryTargetId).Title("Secondary Target")) .Columns(c => c.Bound(g => g.SecondaryTargetId).Title("Secondary Target"))
.Render();} .Render();}
}

View File

@ -10,9 +10,8 @@ Pending Processing
items.Add().Text("Purge History").Action("Purge", "History"); items.Add().Text("Purge History").Action("Purge", "History");
}).Render();} }).Render();}
} }
@section MainContent{ <div class="grid-container">
<div class="grid-container"> @{Html.Telerik().Grid<PendingProcessingModel>().Name("PendingProcessingGrid")
@{Html.Telerik().Grid<PendingProcessingModel>().Name("PendingProcessingGrid")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
@ -30,8 +29,7 @@ Pending Processing
c => c =>
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
.Render();} .Render();}
</div> </div>
}
<script type="text/javascript"> <script type="text/javascript">
var renamePendingUrl = '@Url.Action("RenamePendingProcessing", "System")'; var renamePendingUrl = '@Url.Action("RenamePendingProcessing", "System")';
@ -51,4 +49,4 @@ Pending Processing
} }
}); });
} }
</script> </script>

View File

@ -3,19 +3,17 @@
@section TitleContent{ @section TitleContent{
Upcoming Upcoming
} }
<link href="../../Content/Grid.css" rel="stylesheet" type="text/css" /> <link href="../../Content/Grid.css" rel="stylesheet" type="text/css" />
@section ActionMenu{ @section ActionMenu{
<ul class="sub-menu"> <ul class="sub-menu">
<li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null)</li> <li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null)</li>
</ul> </ul>
} }
@section MainContent{ <div id="yesterday">
<div id="yesterday"> <h2>
<h2>Yesterday</h2> Yesterday</h2>
<div class="grid-container"> <div class="grid-container">
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate( @{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
"No watched shows aired yesterday") "No watched shows aired yesterday")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
@ -43,17 +41,18 @@ Upcoming
)) ))
.DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming")) .DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming"))
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true)) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) //.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
//.Filterable() //.Filterable()
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) //.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
.Render();} .Render();}
</div>
</div> </div>
<br /> </div>
<div id="today"> <br />
<h2>Today</h2> <div id="today">
<div class="grid-container"> <h2>
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.") Today</h2>
<div class="grid-container">
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
@ -81,13 +80,14 @@ Upcoming
.DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming")) .DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming"))
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true)) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
.Render();} .Render();}
</div>
</div> </div>
<br /> </div>
<div id="tomorrow"> <br />
<h2>Tomorrow</h2> <div id="tomorrow">
<div class="grid-container"> <h2>
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Tomorrow").NoRecordsTemplate( Tomorrow</h2>
<div class="grid-container">
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Tomorrow").NoRecordsTemplate(
"No watched shows airing tomorrow") "No watched shows airing tomorrow")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
@ -117,13 +117,14 @@ Upcoming
.DataBinding(data => data.Ajax().Select("_AjaxBindingTomorrow", "Upcoming")) .DataBinding(data => data.Ajax().Select("_AjaxBindingTomorrow", "Upcoming"))
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true)) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
.Render();} .Render();}
</div>
</div> </div>
<br /> </div>
<div id="week"> <br />
<h2>Future Forecast</h2> <div id="week">
<div class="grid-container"> <h2>
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate( Future Forecast</h2>
<div class="grid-container">
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
"No watched shows airing in the next week...") "No watched shows airing in the next week...")
.TableHtmlAttributes(new { @class = "Grid" }) .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
@ -152,6 +153,5 @@ Upcoming
.DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming")) .DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming"))
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true)) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
.Render();} .Render();}
</div>
</div> </div>
} </div>