mirror of
https://github.com/Sonarr/Sonarr
synced 2025-02-22 06:01:24 +00:00
Purge has been fixed for history
This commit is contained in:
parent
510d538c86
commit
a11dc2d204
2 changed files with 2 additions and 30 deletions
|
@ -27,34 +27,6 @@ namespace NzbDrone.Web.Controllers
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
//public JsonResult AjaxBinding()
|
|
||||||
//{
|
|
||||||
// var history = _historyProvider.AllItemsWithRelationships().Select(h => new HistoryModel
|
|
||||||
// {
|
|
||||||
// HistoryId = h.HistoryId,
|
|
||||||
// SeriesId = h.SeriesId,
|
|
||||||
// EpisodeNumbering = string.Format("{0}x{1:00}", h.Episode.SeasonNumber, h.Episode.EpisodeNumber),
|
|
||||||
// EpisodeTitle = h.Episode.Title,
|
|
||||||
// EpisodeOverview = h.Episode.Overview,
|
|
||||||
// SeriesTitle = h.SeriesTitle,
|
|
||||||
// SeriesTitleSorter = SortHelper.SkipArticles(h.SeriesTitle),
|
|
||||||
// NzbTitle = h.NzbTitle,
|
|
||||||
// Quality = h.Quality.ToString(),
|
|
||||||
// IsProper = h.IsProper,
|
|
||||||
// Date = h.Date.ToString(),
|
|
||||||
// DateSorter = h.Date.ToString("MM/dd/yyyy h:mm:ss tt"),
|
|
||||||
// Indexer = h.Indexer,
|
|
||||||
// EpisodeId = h.EpisodeId,
|
|
||||||
// NzbInfoUrl = h.NzbInfoUrl
|
|
||||||
// }).OrderByDescending(h => h.Date).ToList();
|
|
||||||
|
|
||||||
// return Json(new
|
|
||||||
// {
|
|
||||||
// aaData = history
|
|
||||||
// },
|
|
||||||
// JsonRequestBehavior.AllowGet);
|
|
||||||
//}
|
|
||||||
|
|
||||||
public ActionResult AjaxBinding(DataTablesPageRequest pageRequest)
|
public ActionResult AjaxBinding(DataTablesPageRequest pageRequest)
|
||||||
{
|
{
|
||||||
var pageResult = _historyProvider.GetPagedItems(pageRequest);
|
var pageResult = _historyProvider.GetPagedItems(pageRequest);
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
@{ViewBag.Title = "History";}
|
@{ViewBag.Title = "History";}
|
||||||
@section ActionMenu{
|
@section ActionMenu{
|
||||||
<ul class="sub-menu">
|
<ul class="sub-menu">
|
||||||
<li>@Ajax.ActionLink("Trim History", "Trim", "History", null, new AjaxOptions{ OnSuccess = "reloadGrid", Confirm = "Delete history items older than 30 days?"}, new { Title = "Delete history items older than 30 days" })</li>
|
<li>@Ajax.ActionLink("Trim History", "Trim", "History", null, new AjaxOptions{ OnSuccess = "redrawGrid", Confirm = "Delete history items older than 30 days?"}, new { Title = "Delete history items older than 30 days" })</li>
|
||||||
<li>@Ajax.ActionLink("Purge History", "Purge", "History", null, new AjaxOptions{ OnSuccess = "reloadGrid", Confirm = "Purge all history items?" }, new { Title = "Delete all history items" })</li>
|
<li>@Ajax.ActionLink("Purge History", "Purge", "History", null, new AjaxOptions{ OnSuccess = "redrawGrid", Confirm = "Purge all history items?" }, new { Title = "Delete all history items" })</li>
|
||||||
<li>@Html.ActionLink("Search History", "Index", "SearchHistory", null, new { Title = "Review recent searches" })</li>
|
<li>@Html.ActionLink("Search History", "Index", "SearchHistory", null, new { Title = "Review recent searches" })</li>
|
||||||
</ul>
|
</ul>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue