mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Default Log view uses client operations, added all logs view that uses paging (No support for sorting or filtering).
This commit is contained in:
parent
179de93a6e
commit
c13c9d15c4
11 changed files with 146 additions and 15 deletions
|
@ -2,6 +2,7 @@
|
|||
using NzbDrone.Core.Instrumentation;
|
||||
using NzbDrone.Web.Models;
|
||||
using Telerik.Web.Mvc;
|
||||
using System.Linq;
|
||||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
|
@ -19,15 +20,28 @@ namespace NzbDrone.Web.Controllers
|
|||
return View();
|
||||
}
|
||||
|
||||
public ActionResult All()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public JsonResult Clear()
|
||||
{
|
||||
_logProvider.DeleteAll();
|
||||
|
||||
return Json(new NotificationResult() { Title = "Logs Cleared" });
|
||||
return Json(new NotificationResult { Title = "Logs Cleared" });
|
||||
}
|
||||
|
||||
[GridAction]
|
||||
public ActionResult _TopAjaxBinding()
|
||||
{
|
||||
var logs = _logProvider.TopLogs();
|
||||
|
||||
return View(new GridModel(logs));
|
||||
}
|
||||
|
||||
[GridAction(EnableCustomBinding = true)]
|
||||
public ActionResult _AjaxBinding(GridCommand gridCommand)
|
||||
public ActionResult _AllAjaxBinding(GridCommand gridCommand)
|
||||
{
|
||||
var logs = _logProvider.GetPagedLogs(gridCommand.Page, gridCommand.PageSize);
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using MvcMiniProfiler;
|
||||
using NzbDrone.Core.Helpers;
|
||||
using NzbDrone.Core.Providers;
|
||||
using NzbDrone.Core.Providers.Jobs;
|
||||
using NzbDrone.Core.Repository;
|
||||
|
@ -50,7 +51,7 @@ namespace NzbDrone.Web.Controllers
|
|||
[GridAction]
|
||||
public ActionResult _AjaxSeriesGrid()
|
||||
{
|
||||
var series = GetSeriesModels(_seriesProvider.GetAllSeriesWithEpisodeCount());
|
||||
var series = GetSeriesModels(_seriesProvider.GetAllSeriesWithEpisodeCount()).OrderBy(o => SortHelper.SkipArticles(o.Title));
|
||||
return View(new GridModel(series));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue