Update chart link
This commit is contained in:
@@ -1 +1 @@
|
||||
C:\Users\poprhythm\AppData\Local\Temp\Temporary ASP.NET Files\vs\f80e29bb\faae20bf\App_Web_all.generated.cs.8f9494c4.xctgaqtc.dll
|
||||
C:\Users\poprhythm\AppData\Local\Temp\Temporary ASP.NET Files\vs\f80e29bb\faae20bf\App_Web_all.generated.cs.8f9494c4.jjzsduyr.dll
|
||||
@@ -81,7 +81,7 @@ namespace LeafWeb.WebCms.Controllers
|
||||
var leafInput = DataService.GetLeafInput(id);
|
||||
|
||||
// don't allow currently running LeafInput to be deleted
|
||||
if (leafInput.IsRunning)
|
||||
if (leafInput.IsInProgress)
|
||||
{
|
||||
SetStatusMessage($"LeafInput '{leafInput.Identifier}' is currently running!", StatusType.Error);
|
||||
return View(Request.UrlReferrer.ToString());
|
||||
|
||||
@@ -24,11 +24,12 @@
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="dropdown-header">Priority</li>
|
||||
<li>Set High</li>
|
||||
<li>Set Low</li>
|
||||
<li>@DetailsLink(item)</li>
|
||||
<li @DisableItem(!item.HasLeafChart)>@ChartLink(item)</li>
|
||||
@*<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Priority</li>
|
||||
<li>@SetPriorityHigh(item, "Set High")</li>
|
||||
<li>@SetPriorityLow(item, "Set Low")</li>*@
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Download</li>
|
||||
<li>@DownloadInput(item)</li>
|
||||
@@ -50,6 +51,19 @@
|
||||
@Html.Partial("DisplayTemplates/_ChartLink", (int)item.LeafInputId)
|
||||
}
|
||||
|
||||
@helper SetPriorityHigh(dynamic item, string label)
|
||||
{
|
||||
<a href="@Url.Action("SetPriorityHigh", "Queue", new {id = item.LeafInputId})">
|
||||
<span class="glyphicon glyphicon-arrow-up"></span> @label
|
||||
</a>
|
||||
}
|
||||
@helper SetPriorityLow(dynamic item, string label)
|
||||
{
|
||||
<a href="@Url.Action("SetPriorityLow", "Queue", new {id = item.LeafInputId})">
|
||||
<span class="glyphicon glyphicon-arrow-down"></span> @label
|
||||
</a>
|
||||
}
|
||||
|
||||
@helper DownloadInput(dynamic item)
|
||||
{
|
||||
<a href="@Url.Action("DownloadInput", "Queue", new {id = item.LeafInputId})">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
grid.Column("LeafInputSiteId", "Site Id"),
|
||||
grid.Column("LeafInputName", "Submitted By"),
|
||||
grid.Column("CurrentStatus", "Status", item => Html.Partial("DisplayTemplates/_LeafInputStatus", (string)item.CurrentStatus)),
|
||||
grid.Column("Chart", "Chart", item => ChartLink(item))
|
||||
grid.Column("", "", item => ChartLink(item))
|
||||
),
|
||||
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
|
||||
)
|
||||
|
||||
@@ -803,7 +803,6 @@
|
||||
<Content Include="Views\Shared\DisplayTemplates\_DetailsLink.cshtml" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\_ChartButton.cshtml" />
|
||||
<Content Include="Views\EmptyPage.cshtml" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\TermsOfService.cshtml" />
|
||||
<Content Include="Views\Shared\EditorTemplates\TermsOfService.cshtml" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
|
||||
Reference in New Issue
Block a user