@model Disco.Web.Areas.Config.Models.JobPreferences.IndexModel @{ Authorization.Require(Claims.Config.JobPreferences.Show); var canConfig = Authorization.Has(Claims.Config.JobPreferences.Configure); ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Job Preferences"); if (canConfig) { Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers"); Html.BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons"); } }
| Long Running Threshold: | @if (canConfig)
{
@Html.DropDownListFor(model => model.LongRunningJobDaysThreshold, Model.LongRunningJobDaysThresholdOptions().Select(o => new SelectListItem() { Value = o.Key.ToString(), Text = o.Value }))
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
}
else
{
@Model.LongRunningJobDaysThresholdOptions().First(o => o.Key == Model.LongRunningJobDaysThreshold).Value
}
Jobs which have been open for longer than the threshold are considered 'long-running' and will appear in the
Long Running Jobs list.
|
|---|