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