@using DataTables.Mvc.Core @using DataTables.Mvc.Core.Enum @model NzbDrone.Web.Models.SearchDetailsModel @{ ViewBag.Title = "Search Details"; }

@Model.DisplayName

@Html.GridHtml("searchDetailsGrid") @section Scripts { @(Html.GridScriptFor(m => m.SearchResultItems, "#searchDetailsGrid") .PageLength(20) .ChangePageLength(false) .AddColumn(new Column().Image("/Content/Images/Indexers/{Indexer}.png", new { alt = "{Indexer}", title = "{Indexer}" }, "{Indexer}").Sortable(false).Title("").Width("20px")) .AddColumn(new Column().DataProperty("ReportTitle").Title("Report Title")) .AddColumn(new Column().DataProperty("Success").Title("Successful").Width("120px")) .AddColumn(new Column().DisplayAndSort("Quality", "QualityInt").Title("Quality").Width("80px")) .AddColumn(new Column().DataProperty("SearchError").Title("Error")) .AddColumn(new Column().DataProperty("return actionColumn(source, type, val);", true)) .AddColumn(new Column().DataProperty("Details").RenderFunction("return getDetails(row, val);").Visible(false)) .AddSorting(3, SortDirection.Desc)) }