8254e7ec5a
Markdown implemented in Job Logs, Job Queue comments, various other places.
312 lines
9.4 KiB
C#
312 lines
9.4 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.34014
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Disco.Web.Areas.Config.Views.JobQueue
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Helpers;
|
|
using System.Web.Mvc;
|
|
using System.Web.Mvc.Ajax;
|
|
using System.Web.Mvc.Html;
|
|
using System.Web.Routing;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.WebPages;
|
|
using Disco;
|
|
using Disco.BI.Extensions;
|
|
using Disco.Models.Repository;
|
|
using Disco.Services;
|
|
using Disco.Services.Authorization;
|
|
using Disco.Services.Web;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/JobQueue/Index.cshtml")]
|
|
public partial class Index : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.JobQueue.IndexModel>
|
|
{
|
|
public Index()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 2 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
|
|
Authorization.RequireAll(Claims.Config.JobQueue.Create, Claims.Config.JobQueue.Configure);
|
|
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Job Queues", MVC.Config.JobQueue.Index(null));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n<div");
|
|
|
|
WriteLiteral(" id=\"Config_JobQueues_Index\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 7 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 7 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
if (Model.Tokens.Count == 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 450px; padding: 100px 0;\"");
|
|
|
|
WriteLiteral(">\r\n <h2>No job queues are configured</h2>\r\n </div> \r\n");
|
|
|
|
|
|
#line 12 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <table");
|
|
|
|
WriteLiteral(" class=\"tableData\"");
|
|
|
|
WriteLiteral(">\r\n <tr>\r\n <th>Name</th>\r\n <th>Descripti" +
|
|
"on</th>\r\n <th>Priority</th>\r\n <th>Linked Groups/Us" +
|
|
"ers</th>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 22 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 22 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
foreach (var item in Model.Tokens)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <td>\r\n <a");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 890), Tuple.Create("\"", 953)
|
|
|
|
#line 26 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 897), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.JobQueue.Index(item.JobQueue.Id))
|
|
|
|
#line default
|
|
#line hidden
|
|
, 897), false)
|
|
);
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 987), Tuple.Create("\"", 1058)
|
|
, Tuple.Create(Tuple.Create("", 995), Tuple.Create("fa", 995), true)
|
|
, Tuple.Create(Tuple.Create(" ", 997), Tuple.Create("fa-", 998), true)
|
|
|
|
#line 27 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1001), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Icon
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1001), false)
|
|
, Tuple.Create(Tuple.Create(" ", 1022), Tuple.Create("fa-lg", 1023), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1028), Tuple.Create("d-", 1029), true)
|
|
|
|
#line 27 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1031), Tuple.Create<System.Object, System.Int32>(item.JobQueue.IconColour
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1031), false)
|
|
);
|
|
|
|
WriteLiteral("></i>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 28 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
Write(item.JobQueue.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </a>\r\n </td>\r\n <t" +
|
|
"d>");
|
|
|
|
|
|
#line 31 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
if (string.IsNullOrWhiteSpace(item.JobQueue.Description))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><none></span>\r\n");
|
|
|
|
|
|
#line 34 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 37 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
Write(item.JobQueue.Description.ToHtmlComment());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 37 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n <td>\r\n <i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 1613), Tuple.Create("\"", 1681)
|
|
, Tuple.Create(Tuple.Create("", 1621), Tuple.Create("fa", 1621), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1623), Tuple.Create("d-priority-", 1624), true)
|
|
|
|
#line 41 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1635), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Priority.ToString().ToLower()
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1635), false)
|
|
);
|
|
|
|
WriteAttribute("title", Tuple.Create(" title=\"", 1682), Tuple.Create("\"", 1735)
|
|
|
|
#line 41 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1690), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Priority.ToString()
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1690), false)
|
|
, Tuple.Create(Tuple.Create(" ", 1726), Tuple.Create("Priority", 1727), true)
|
|
);
|
|
|
|
WriteLiteral("></i>\r\n </td>\r\n <td>\r\n");
|
|
|
|
|
|
#line 44 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 44 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
if (item.SubjectIds.Count == 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral("><None></span>\r\n");
|
|
|
|
|
|
#line 47 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 50 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
Write(string.Join(", ", item.SubjectIds.OrderBy(i => i)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 50 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 54 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </table>\r\n");
|
|
|
|
|
|
#line 56 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"actionBar\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 58 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
|
|
Write(Html.ActionLinkButton("Create Job Queue", MVC.Config.JobQueue.Create()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n</div>\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|