mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-28 18:47:52 +00:00
3a5d99921e
Applies to Backlog and RecentBacklog jobs. Editable in Series/MassEdit and Series Edit. Added RecentBacklog button to Missing view, with mouse over description.
51 lines
2.9 KiB
Text
51 lines
2.9 KiB
Text
@model List<MissingEpisodeModel>
|
|
@using NzbDrone.Web.Helpers
|
|
@using NzbDrone.Web.Models;
|
|
@{ViewBag.Title="Missing";}
|
|
@section HeaderContent
|
|
{
|
|
@Html.IncludeCss("Grid.css")
|
|
}
|
|
@section ActionMenu{
|
|
<ul class="sub-menu">
|
|
<li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null)</li>
|
|
<li>@Ajax.ActionLink("Start Backlog Search", "BacklogSearch", "Command", null, null, new { title = "Backlog search for ALL missing episodes" })</li>
|
|
<li>@Ajax.ActionLink("Start Recent Backlog Search", "RecentBacklogSearch", "Command", null, null, new { title = "Backlog search for missing episodes that aired in the last 30 days only" })</li>
|
|
</ul>
|
|
}
|
|
@{Html.Telerik().Grid<MissingEpisodeModel>().Name("missing")
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.SeriesTitle)
|
|
.ClientTemplate("<a href=" +
|
|
Url.Action("Details", "Series", new { seriesId = "<#= SeriesId #>" }) +
|
|
"><#= SeriesTitle #></a>")
|
|
.Title("Series Title");
|
|
columns.Bound(c => c.SeasonNumber).Title("Season #").Width(85);
|
|
columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(85);
|
|
columns.Bound(c => c.EpisodeTitle).Title("Episode Title");
|
|
columns.Bound(c => c.AirDate)
|
|
.ClientTemplate("<#= AirDateString #>")
|
|
.Title("Air Date")
|
|
.Width(90);
|
|
columns.Bound(c => c.EpisodeId)
|
|
.Title("Actions")
|
|
.ClientTemplate(Ajax.ImageActionLink("../../Content/Images/Search.png", new { Alt = "Search", Title = "Search for episode", @class = "searchImage" }, "Search", "Episode", new { EpisodeId = "<#= EpisodeId #>" }, null, null).ToString())
|
|
.Width("40");
|
|
})
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
"<fieldset>" +
|
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
|
"</fieldset>"
|
|
))
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBinding", "Missing"))
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Descending()).Enabled(true))
|
|
.Filterable(filtering => filtering
|
|
.Filters(filters => filters
|
|
.Add(o => o.SeasonNumber).IsGreaterThan(0)))
|
|
|
|
.Pageable(
|
|
c =>
|
|
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
|
.Render();}
|