@using NzbDrone.Web.Models
@using NzbDrone.Web.Helpers
@model string
@{ViewBag.Title = "Jobs";}
@section HeaderContent
{
@Html.IncludeCss("Grid.css")
}
ID |
Enable |
Type Name |
Name |
Interval |
Last Execution |
Success |
@*Commands Column*@
Actions |
Items currently in queue
@section Scripts{
}
@*@{Html.Telerik().Grid(Model).Name("Grid")
.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))
.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)
}
}
))
.Sortable(c=>c.OrderBy(col=>col.Add(g=>g.Interval)))
.Render();}
Items currently in queue
@{Html.Telerik().Grid((IEnumerable)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"))
.Render();}*@