parent
c83d8879a2
commit
4f005e45c0
@ -0,0 +1,22 @@
|
||||
@using DataTables.Mvc.Core
|
||||
@model IEnumerable<NzbDrone.Web.Models.SearchResultsModel>
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Search Results";
|
||||
}
|
||||
|
||||
@Html.GridHtml("searchResultsGrid", "dataTablesGrid")
|
||||
|
||||
@section Scripts
|
||||
{
|
||||
@(
|
||||
Html.GridScriptForModel("#searchResultsGrid")
|
||||
.PageLength(20)
|
||||
.ChangePageLength(false)
|
||||
.AddColumn(new Column().DataProperty("DisplayName").Link("SearchDetails?searchId={Id}", "{DisplayName}").Title("Name"))
|
||||
.AddColumn(new Column().DataProperty("SearchTime").Title("Time").Width("170px"))
|
||||
.AddColumn(new Column().DataProperty("ReportCount").Title("Reports Found").Width("140px"))
|
||||
.AddColumn(new Column().DataProperty("Successful").Title("Successful").Width("110px"))
|
||||
.AddSorting(1)
|
||||
)
|
||||
}
|
Loading…
Reference in new issue