From 1ee2ae82105a59b8b6c2900c664322b6432eedd2 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 16 Dec 2011 21:27:37 -0800 Subject: [PATCH] Removed Command from JobDefinition. --- NzbDrone.Core/Repository/JobDefinition.cs | 3 --- NzbDrone.Web/Controllers/SystemController.cs | 5 ----- NzbDrone.Web/Views/System/Jobs.cshtml | 5 +++-- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/NzbDrone.Core/Repository/JobDefinition.cs b/NzbDrone.Core/Repository/JobDefinition.cs index 3bbac9bf6..3eb1dcec9 100644 --- a/NzbDrone.Core/Repository/JobDefinition.cs +++ b/NzbDrone.Core/Repository/JobDefinition.cs @@ -20,8 +20,5 @@ public class JobDefinition public DateTime LastExecution { get; set; } public Boolean Success { get; set; } - - [Ignore] - public string Command { get; set; } } } \ No newline at end of file diff --git a/NzbDrone.Web/Controllers/SystemController.cs b/NzbDrone.Web/Controllers/SystemController.cs index 4e42e9f96..e1eeb61bd 100644 --- a/NzbDrone.Web/Controllers/SystemController.cs +++ b/NzbDrone.Web/Controllers/SystemController.cs @@ -37,11 +37,6 @@ public ActionResult Jobs() }); var jobs = _jobProvider.All(); - foreach(var jobDefinition in jobs) - { - jobDefinition.Command = ""; - } - return View(jobs); } diff --git a/NzbDrone.Web/Views/System/Jobs.cshtml b/NzbDrone.Web/Views/System/Jobs.cshtml index 385b5a715..81f53cb5d 100644 --- a/NzbDrone.Web/Views/System/Jobs.cshtml +++ b/NzbDrone.Web/Views/System/Jobs.cshtml @@ -11,8 +11,9 @@ .Columns(c => c.Bound(g => g.Interval)) .Columns(c => c.Bound(g => g.LastExecution)) .Columns(c => c.Bound(g => g.Success)) - .Columns(c => c.Bound(g => g.Command) - .Template(@ @{ if(item.Enable) + .Columns(c => c.Bound(g => g.Id) + .Title("Command") + .Template(@ @{ if(item.Enable) { @Ajax.ImageActionLink("../../Content/Images/Gear.png", new { Alt = "Run", Width = 18, Height = 18, Title = "Run Job" }, "RunJob", new { TypeName = item.TypeName }, null, null) }