Removed Command from JobDefinition.

This commit is contained in:
Mark McDowall 2011-12-16 21:27:37 -08:00
parent 6bd8de000a
commit 1ee2ae8210
3 changed files with 3 additions and 10 deletions

View File

@ -20,8 +20,5 @@ namespace NzbDrone.Core.Repository
public DateTime LastExecution { get; set; }
public Boolean Success { get; set; }
[Ignore]
public string Command { get; set; }
}
}

View File

@ -37,11 +37,6 @@ namespace NzbDrone.Web.Controllers
});
var jobs = _jobProvider.All();
foreach(var jobDefinition in jobs)
{
jobDefinition.Command = "<a href=\"http://www.google.ca\"></a>";
}
return View(jobs);
}

View File

@ -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(@<text> @{ if(item.Enable)
.Columns(c => c.Bound(g => g.Id)
.Title("Command")
.Template(@<text> @{ 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)
}