@@ -45,7 +45,6 @@
<%: Model.Path %>
-
<%
//Todo: This breaks when using SQLServer... thoughts?
//Normal Seasons
@@ -57,25 +56,30 @@
Season
<%: season.SeasonNumber %>
<%
- Season season1 = season;
- Html.Telerik().Grid
().Name("seasons_" + season.SeasonNumber)
- .Columns(columns =>
- {
- columns.Bound(c => c.SeasonNumber).Width(0).Title("Season");
- columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode");
- columns.Bound(c => c.Title).Title("Title");
- columns.Bound(c => c.AirDate).Format("{0:d}").Width(0);
- columns.Bound(c => c.Path);
- })
- //.DetailView(detailView => detailView.Template(e => Html.RenderPartial("EpisodeDetail", e)))
- .DetailView(detailView => detailView.ClientTemplate("<#= Overview #>
"))
- .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(true))
- .Footer(false)
- .DataBinding(d => d.Ajax().Select("_AjaxSeasonGrid", "Series", new RouteValueDictionary { { "seasonId", season1.SeasonId.ToString() } }))
- //.EnableCustomBinding(true)
- //.ClientEvents(e => e.OnDetailViewExpand("episodeDetailExpanded")) //Causes issues displaying the episode detail multiple times...
- .ToolBar(c => c.Custom().Text("Rename Season").Action("RenameSeason", "Series", new { seasonId = season1.SeasonId }).ButtonType(GridButtonType.Text))
- .Render();
+ Season season1 = season;
+ Html.Telerik().Grid().Name("seasons_" + season.SeasonNumber)
+ .Columns(columns =>
+ {
+ columns.Bound(o => o.EpisodeId)
+ .ClientTemplate("")
+ .Title("")
+ .Width(1)
+ .HtmlAttributes(new { style = "text-align:center" });
+
+ columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode");
+ columns.Bound(c => c.Title).Title("Title");
+ columns.Bound(c => c.AirDate).Format("{0:d}").Width(0);
+ columns.Bound(c => c.Path);
+ })
+ //.DetailView(detailView => detailView.Template(e => Html.RenderPartial("EpisodeDetail", e)))
+ .DetailView(detailView => detailView.ClientTemplate("<#= Overview #>
"))
+ .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(true))
+ .Footer(false)
+ .DataBinding(d => d.Ajax().Select("_AjaxSeasonGrid", "Series", new RouteValueDictionary { { "seasonId", season1.SeasonId.ToString() } }))
+ //.EnableCustomBinding(true)
+ //.ClientEvents(e => e.OnDetailViewExpand("episodeDetailExpanded")) //Causes issues displaying the episode detail multiple times...
+ .ToolBar(c => c.Custom().Text("Rename Season").Action("RenameSeason", "Series", new { seasonId = season1.SeasonId }).ButtonType(GridButtonType.Text))
+ .Render();
}
//Specials
@@ -89,17 +93,17 @@
Specials
<%
-Html.Telerik().Grid(specialSeasons.Episodes).Name("seasons_specials")
- .Columns(columns =>
- {
- columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode");
- columns.Bound(c => c.Title);
- columns.Bound(c => c.AirDate).Format("{0:d}").Width(0);
- })
- .DetailView(detailView => detailView.ClientTemplate("<#= Overview #>
"))
- .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false))
- .Footer(false)
- .Render();
+ Html.Telerik().Grid(specialSeasons.Episodes).Name("seasons_specials")
+ .Columns(columns =>
+ {
+ columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode");
+ columns.Bound(c => c.Title);
+ columns.Bound(c => c.AirDate).Format("{0:d}").Width(0);
+ })
+ .DetailView(detailView => detailView.ClientTemplate("<#= Overview #>
"))
+ .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false))
+ .Footer(false)
+ .Render();
}
%>
diff --git a/NzbDrone.Web/Views/Series/index.aspx b/NzbDrone.Web/Views/Series/index.aspx
index b2de184a9..f10b8df90 100644
--- a/NzbDrone.Web/Views/Series/index.aspx
+++ b/NzbDrone.Web/Views/Series/index.aspx
@@ -16,15 +16,18 @@
.Name("Grid")
.Columns(columns =>
{
- columns.Bound(o => o.SeriesId).Width(100);
columns.Template(c =>
- {
+ {
%>
<%:Html.ActionLink(c.Title, "Details", new {seriesId =c.SeriesId}) %>
<%
- }).Title("Title");
- columns.Bound(o => o.Status);
- columns.Bound(o => o.Path);
+ }).Title("Title");
+ columns.Bound(o => o.Seasons.Count).Title("Seasons");
+ columns.Bound(o => o.QualityProfile.Name).Title("Quality");
+ columns.Bound(o => o.Status);
+ columns.Bound(o => o.AirsDayOfWeek);
+ columns.Bound(o => o.Path);
+
})
.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(false))
.Render();