From 722db50b3583b64fb2b032ecfa213ca6e73ef44b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 9 Feb 2012 14:11:01 -0800 Subject: [PATCH] Removed old log grid copies. --- NzbDrone.Web/Controllers/LogController.cs | 11 ---- NzbDrone.Web/NzbDrone.Web.csproj | 1 - NzbDrone.Web/Views/Log/IndexOld.cshtml | 65 ----------------------- 3 files changed, 77 deletions(-) delete mode 100644 NzbDrone.Web/Views/Log/IndexOld.cshtml diff --git a/NzbDrone.Web/Controllers/LogController.cs b/NzbDrone.Web/Controllers/LogController.cs index 0f3b80eb3..42d82d57e 100644 --- a/NzbDrone.Web/Controllers/LogController.cs +++ b/NzbDrone.Web/Controllers/LogController.cs @@ -29,11 +29,6 @@ namespace NzbDrone.Web.Controllers return View(); } - public ActionResult IndexOld() - { - return View(); - } - public FileContentResult File() { string log = string.Empty; @@ -102,11 +97,5 @@ namespace NzbDrone.Web.Controllers }, JsonRequestBehavior.AllowGet); } - - [GridAction] - public ActionResult AjaxBindingOld() - { - return View(new GridModel(_logProvider.GetAllLogs())); - } } } \ No newline at end of file diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 384ddf12e..7f7a9f0be 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -688,7 +688,6 @@ - diff --git a/NzbDrone.Web/Views/Log/IndexOld.cshtml b/NzbDrone.Web/Views/Log/IndexOld.cshtml deleted file mode 100644 index 9763ee6ed..000000000 --- a/NzbDrone.Web/Views/Log/IndexOld.cshtml +++ /dev/null @@ -1,65 +0,0 @@ -@using NzbDrone.Common -@using NzbDrone.Core.Instrumentation -@using NzbDrone.Web.Helpers -@model IEnumerable -@section Scripts{ - -} -@{ ViewBag.Title = "Logs";} -@section ActionMenu{ - -} -
- Log entries older than 30 days are automatically deleted.
-@{Html.Telerik().Grid().Name("logsGrid") - .TableHtmlAttributes(new { @class = "Grid" }) - .Columns(columns => - { - columns.Bound(c => c.Time).Title("Time").Width(170); - columns.Bound(c => c.Level).Title("Level").Width(70); - columns.Bound(c => c.Logger).Title("Source"); - columns.Bound(c => c.Message); - }) - .DetailView(detailView => detailView.ClientTemplate( - "
Method: <#= Method #>
" + - "
<#= ExceptionType #>
" + - "
<#= Exception #>
" - )) - .DataBinding(data => data.Ajax().Select("AjaxBindingOld", "Log").Enabled(true)) - .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true)) - .Pageable(paging => paging.Style(GridPagerStyles.Status).PageOnScroll(true).PageSize(100)) - .Filterable() - .ClientEvents(c => c.OnRowDataBound("onRowDataBound")) - .Scrollable(c => c.Height(500)) - .ClientEvents(clientEvents => - { - if (EnviromentProvider.IsProduction) - clientEvents.OnError("grid_onError"); - }) - .Render();} -