2012-04-21 08:16:15 +00:00
|
|
|
@using DataTables.Mvc.Core
|
|
|
|
@model IEnumerable<NzbDrone.Web.Models.SearchResultsModel>
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewBag.Title = "Search Results";
|
|
|
|
}
|
|
|
|
|
2012-04-21 08:25:42 +00:00
|
|
|
@Html.GridHtml("searchResultsGrid", "dataTablesGrid no-details")
|
2012-04-21 08:16:15 +00:00
|
|
|
|
|
|
|
@section Scripts
|
|
|
|
{
|
|
|
|
@(
|
2012-04-23 06:31:11 +00:00
|
|
|
Html.GridScriptForModel("#searchResultsGrid")
|
2012-04-21 08:16:15 +00:00
|
|
|
.PageLength(20)
|
|
|
|
.ChangePageLength(false)
|
2012-04-23 06:31:11 +00:00
|
|
|
.AddColumn(new Column().DataProperty("DisplayName").Link("SearchResult/Details?searchId={Id}", "{DisplayName}", null).Title("Name"))
|
2012-04-21 08:16:15 +00:00
|
|
|
.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)
|
|
|
|
)
|
|
|
|
}
|