2011-12-19 05:08:36 +00:00
|
|
|
@using NzbDrone.Web.Models
|
2011-12-15 08:25:16 +00:00
|
|
|
@using NzbDrone.Web.Helpers
|
2011-07-11 04:53:34 +00:00
|
|
|
@model IEnumerable<NzbDrone.Core.Repository.JobDefinition>
|
2011-12-10 05:05:17 +00:00
|
|
|
@{ViewBag.Title = "Jobs";}
|
2011-12-01 05:25:01 +00:00
|
|
|
|
2011-04-22 05:46:47 +00:00
|
|
|
@{Html.Telerik().Grid(Model).Name("Grid")
|
2011-12-15 08:25:16 +00:00
|
|
|
.Columns(c => c.Bound(g => g.Id))
|
|
|
|
.Columns(c => c.Bound(g => g.Enable))
|
|
|
|
.Columns(c => c.Bound(g => g.TypeName))
|
|
|
|
.Columns(c => c.Bound(g => g.Name))
|
|
|
|
.Columns(c => c.Bound(g => g.Interval))
|
|
|
|
.Columns(c => c.Bound(g => g.LastExecution))
|
|
|
|
.Columns(c => c.Bound(g => g.Success))
|
2011-12-17 05:27:37 +00:00
|
|
|
.Columns(c => c.Bound(g => g.Id)
|
|
|
|
.Title("Command")
|
|
|
|
.Template(@<text> @{ if(item.Enable)
|
2011-12-15 08:25:16 +00:00
|
|
|
{
|
|
|
|
@Ajax.ImageActionLink("../../Content/Images/Gear.png", new { Alt = "Run", Width = 18, Height = 18, Title = "Run Job" }, "RunJob", new { TypeName = item.TypeName }, null, null)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</text>))
|
|
|
|
.Render();}
|
2011-07-11 04:53:34 +00:00
|
|
|
|
|
|
|
Items currently in queue
|
|
|
|
|
2011-08-22 00:48:37 +00:00
|
|
|
@{Html.Telerik().Grid((IEnumerable<JobQueueItemModel>)ViewData["Queue"]).Name("QueueGrid")
|
|
|
|
.Columns(c => c.Bound(g => g.Name).Title("Type").Width(100))
|
|
|
|
.Columns(c => c.Bound(g => g.TargetId).Title("Target"))
|
|
|
|
.Columns(c => c.Bound(g => g.SecondaryTargetId).Title("Secondary Target"))
|
2011-12-20 07:46:07 +00:00
|
|
|
.Render();}
|