2011-12-19 08:08:36 +03:00
|
|
|
@using NzbDrone.Web.Models
|
2011-12-15 11:25:16 +03:00
|
|
|
@using NzbDrone.Web.Helpers
|
2011-07-11 07:53:34 +03:00
|
|
|
@model IEnumerable<NzbDrone.Core.Repository.JobDefinition>
|
2011-12-10 08:05:17 +03:00
|
|
|
@{ViewBag.Title = "Jobs";}
|
2011-12-01 08:25:01 +03:00
|
|
|
|
2011-04-22 08:46:47 +03:00
|
|
|
@{Html.Telerik().Grid(Model).Name("Grid")
|
2011-12-15 11:25:16 +03: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 08:27:37 +03:00
|
|
|
.Columns(c => c.Bound(g => g.Id)
|
|
|
|
.Title("Command")
|
|
|
|
.Template(@<text> @{ if(item.Enable)
|
2011-12-15 11:25:16 +03: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>))
|
2012-01-15 05:47:23 +03:00
|
|
|
.Sortable(c=>c.OrderBy(col=>col.Add(g=>g.Interval)))
|
2011-12-15 11:25:16 +03:00
|
|
|
.Render();}
|
2011-07-11 07:53:34 +03:00
|
|
|
|
2012-01-15 05:47:23 +03:00
|
|
|
<h1>Items currently in queue</h1>
|
2011-07-11 07:53:34 +03:00
|
|
|
|
2011-08-22 03:48:37 +03: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 10:46:07 +03:00
|
|
|
.Render();}
|