8254e7ec5a
Markdown implemented in Job Logs, Job Queue comments, various other places.
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
@model Disco.Web.Areas.Config.Models.UserFlag.IndexModel
|
|
@{
|
|
Authorization.RequireAll(Claims.Config.UserFlag.Create, Claims.Config.UserFlag.Configure);
|
|
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "User Flags", MVC.Config.UserFlag.Index(null));
|
|
}
|
|
<div id="Config_UserFlags_Index">
|
|
@if (Model.UserFlags.Count == 0)
|
|
{
|
|
<div class="form" style="width: 450px; padding: 100px 0;">
|
|
<h2>No user flags are configured</h2>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="tableData">
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
@foreach (var item in Model.UserFlags)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<a href="@Url.Action(MVC.Config.UserFlag.Index(item.Id))">
|
|
<i class="fa fa-@(item.Icon) fa-lg d-@(item.IconColour)"></i>
|
|
@item.Name
|
|
</a>
|
|
</td>
|
|
<td>@if (string.IsNullOrWhiteSpace(item.Description))
|
|
{
|
|
<span class="smallMessage"><none></span>
|
|
}
|
|
else
|
|
{
|
|
@item.Description.ToHtmlComment()
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
}
|
|
<div class="actionBar">
|
|
@Html.ActionLinkButton("Create User Flag", MVC.Config.UserFlag.Create())
|
|
</div>
|
|
</div>
|