mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
|
@model IEnumerable<NzbDrone.Core.Repository.Series>
|
||
|
|
||
|
@section TitleContent{
|
||
|
Series
|
||
|
}
|
||
|
|
||
|
@section ActionMenu{
|
||
|
@{Html.RenderPartial("SubMenu");}
|
||
|
}
|
||
|
|
||
|
@section MainContent{
|
||
|
@{Html.Telerik().Grid(Model).Name("Grid")
|
||
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||
|
.Columns(columns =>
|
||
|
{
|
||
|
columns.Template(c => @Html.ActionLink(c.Title ?? "New Series", "Details",
|
||
|
new {seriesId = c.SeriesId})
|
||
|
).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();}
|
||
|
}
|