Files
Disco/Disco.Web/Areas/Config/Views/JobQueue/Index.cshtml
T
Gary Sharp a819d2722a Feature #49: Active Directory Managed Groups
Document Template Attachments, Device Batches, Device Profiles and User
Flags can be associated with an Active Directory group. This AD group is
then automatically synchronized with relevant User/Machine accounts.
Contains various other UI tweaks and configuration enhancements.
2014-06-16 22:21:31 +10:00

64 lines
2.3 KiB
Plaintext

@model Disco.Web.Areas.Config.Models.JobQueue.IndexModel
@{
Authorization.Require(Claims.Config.JobQueue.Show);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Job Queues", MVC.Config.JobQueue.Index(null));
}
<div id="Config_JobQueues_Index">
@if (Model.Tokens.Count == 0)
{
<div class="form" style="width: 450px; padding: 100px 0;">
<h2>No job queues are configured</h2>
</div>
}
else
{
<table class="tableData">
<tr>
<th>Name</th>
<th>Description</th>
<th>Priority</th>
<th>Linked Groups/Users</th>
</tr>
@foreach (var item in Model.Tokens)
{
<tr>
<td>
<a href="@Url.Action(MVC.Config.JobQueue.Index(item.JobQueue.Id))">
<i class="fa fa-@(item.JobQueue.Icon) fa-lg d-@(item.JobQueue.IconColour)"></i>
@item.JobQueue.Name
</a>
</td>
<td>@if (string.IsNullOrWhiteSpace(item.JobQueue.Description))
{
<span class="smallMessage">&lt;none&gt;</span>
}
else
{
@item.JobQueue.Description.ToHtmlComment()
}
</td>
<td>
<i class="fa d-priority-@(item.JobQueue.Priority.ToString().ToLower())" title="@(item.JobQueue.Priority.ToString()) Priority"></i>
</td>
<td>
@if (item.SubjectIds.Count == 0)
{
<span class="smallMessage">&lt;None&gt;</span>
}
else
{
@(string.Join(", ", item.SubjectIds.OrderBy(i => i)))
}
</td>
</tr>
}
</table>
}
@if (Authorization.Has(Claims.Config.JobQueue.Create))
{
<div class="actionBar">
@Html.ActionLinkButton("Create Job Queue", MVC.Config.JobQueue.Create())
</div>
}
</div>