1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00
Sonarr/NzbDrone.Web/Views/SearchHistory/Index.cshtml

23 lines
921 B
Plaintext
Raw Normal View History

2012-04-21 11:16:15 +03:00
@using DataTables.Mvc.Core
@model IEnumerable<NzbDrone.Web.Models.SearchHistoryModel>
2012-04-21 11:16:15 +03:00
@{
ViewBag.Title = "Search Results";
}
@Html.GridHtml("searchResultsGrid", "dataTablesGrid no-details")
2012-04-21 11:16:15 +03:00
@section Scripts
{
@(
Html.GridScriptForModel("#searchResultsGrid")
2012-04-21 11:16:15 +03:00
.PageLength(20)
.ChangePageLength(false)
.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().Image("/Content/Images/{Successful}.png", new { alt = "{Successful}", title = "{Successful}", @class = "gridImage" }, "{Successful}").Title("Successful").Width("110px"))
2012-04-21 11:16:15 +03:00
.AddSorting(1)
)
}