1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-30 19:56:54 +00:00
Sonarr/NzbDrone.Web/Views/SearchHistory/Index.cshtml
Mark McDowall 253d0919e0 Grid error messages #ND-71 fixed.
New: Error messages for empty grids match the content
2012-09-26 08:51:19 -07:00

22 lines
1.1 KiB
Text

@using DataTables.Mvc.Core
@using SortDirection = DataTables.Mvc.Core.Enum.SortDirection
@model IEnumerable<NzbDrone.Web.Models.SearchHistoryModel>
@{
ViewBag.Title = "Search Results";
}
@Html.GridHtml("searchResultsGrid", "dataTablesGrid no-details")
@section Scripts
{
@(Html.GridScriptForModel("#searchResultsGrid")
.PageLength(20)
.ChangePageLength(false)
.AddColumn(new Column().DataProperty("DisplayName").Link("SearchHistory/Details?searchId={Id}", "{DisplayName}", null).Title("Name"))
.AddColumn(new Column().DataProperty("SearchTime").Title("Time").Width("170px"))
.AddColumn(new Column().DataProperty("ReportCount").Title("Reports Found").Width("140px"))
.AddColumn(new Column().Image("/Content/Images/{Successful}.png", new { alt = "{Successful}", title = "{Successful}", @class = "gridImage" }, "{Successful}").Title("Successful").Width("110px"))
.AddSorting(1, SortDirection.Desc)
.Language(new Language().EmptyTable("No search results available").ZeroRecords("No results match the filter")))
}