Feature #25: Job General Preferences

Initially to make 'long running job threshold' configurable. Updates to
ManagedJobList and fix for missing GetClaimKeys method (#24).
This commit is contained in:
Gary Sharp
2013-10-24 18:19:05 +11:00
parent 0d60fb422c
commit 723eeec91e
31 changed files with 987 additions and 142 deletions
+2 -1
View File
@@ -14,7 +14,8 @@
<div id="Job_Show">
<div id="Job_Show_Status">
@{ var jobStatusInfo = Model.Job.Status();}
<span class="icon JobStatus@(jobStatusInfo.Item1)"></span>@jobStatusInfo.Item2
<span class="icon JobStatus@(jobStatusInfo.Item1)"></span>@jobStatusInfo.Item2 @if (Model.IsLongRunning)
{<span class="smallMessage">(Long Running)</span>}
<script type="text/javascript">
$(function () {
$('#Job_Show_Status').appendTo('#layout_PageHeading')
+35 -13
View File
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -104,7 +104,29 @@ WriteLiteral("></span>");
#line default
#line hidden
WriteLiteral("\r\n <script");
WriteLiteral(" ");
#line 17 "..\..\Views\Job\Show.cshtml"
if (Model.IsLongRunning)
{
#line default
#line hidden
WriteLiteral("<span");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">(Long Running)</span>");
#line 18 "..\..\Views\Job\Show.cshtml"
}
#line default
#line hidden
WriteLiteral(" <script");
WriteLiteral(" type=\"text/javascript\"");
@@ -114,7 +136,7 @@ WriteLiteral(">\r\n $(function () {\r\n $(\'#Job_Show_
WriteLiteral(" ");
#line 24 "..\..\Views\Job\Show.cshtml"
#line 25 "..\..\Views\Job\Show.cshtml"
Write(Html.Partial(MVC.Job.Views.JobParts._Subject, Model));
@@ -154,13 +176,13 @@ WriteLiteral(" id=\"jobDetailTabItems\"");
WriteLiteral(">\r\n");
#line 60 "..\..\Views\Job\Show.cshtml"
#line 61 "..\..\Views\Job\Show.cshtml"
#line default
#line hidden
#line 60 "..\..\Views\Job\Show.cshtml"
#line 61 "..\..\Views\Job\Show.cshtml"
if (Authorization.HasAll(Claims.Job.ShowLogs, Claims.Job.ShowAttachments))
{
@@ -174,7 +196,7 @@ WriteLiteral(" href=\"#jobDetailTab-Resources\"");
WriteLiteral(">Log and Attachments</a></li>\r\n");
#line 63 "..\..\Views\Job\Show.cshtml"
#line 64 "..\..\Views\Job\Show.cshtml"
}
else if (Authorization.Has(Claims.Job.ShowLogs))
{
@@ -189,7 +211,7 @@ WriteLiteral(" href=\"#jobDetailTab-Resources\"");
WriteLiteral(">Log</a></li>\r\n");
#line 67 "..\..\Views\Job\Show.cshtml"
#line 68 "..\..\Views\Job\Show.cshtml"
}
else if (Authorization.Has(Claims.Job.ShowLogs))
{
@@ -204,7 +226,7 @@ WriteLiteral(" href=\"#jobDetailTab-Resources\"");
WriteLiteral(">Attachments</a></li>\r\n");
#line 71 "..\..\Views\Job\Show.cshtml"
#line 72 "..\..\Views\Job\Show.cshtml"
}
@@ -213,13 +235,13 @@ WriteLiteral(">Attachments</a></li>\r\n");
WriteLiteral(" </ul>\r\n");
#line 73 "..\..\Views\Job\Show.cshtml"
#line 74 "..\..\Views\Job\Show.cshtml"
#line default
#line hidden
#line 73 "..\..\Views\Job\Show.cshtml"
#line 74 "..\..\Views\Job\Show.cshtml"
if (Authorization.HasAny(Claims.Job.ShowLogs, Claims.Job.ShowAttachments))
{
@@ -237,7 +259,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 76 "..\..\Views\Job\Show.cshtml"
#line 77 "..\..\Views\Job\Show.cshtml"
Write(Html.Partial(MVC.Job.Views.JobParts.Resources, Model));
@@ -246,7 +268,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n </div>\r\n");
#line 78 "..\..\Views\Job\Show.cshtml"
#line 79 "..\..\Views\Job\Show.cshtml"
}
@@ -255,7 +277,7 @@ WriteLiteral("\r\n </div>\r\n");
WriteLiteral(" ");
#line 79 "..\..\Views\Job\Show.cshtml"
#line 80 "..\..\Views\Job\Show.cshtml"
Write(Html.Partial(MVC.Job.Views.JobParts.JobMetaAdditions, Model));