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