Update chart link

This commit is contained in:
2017-01-06 09:25:35 -05:00
parent 42ac27e16f
commit 9d0524dd72
5 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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());
+17 -3
View File
@@ -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})">
+1 -1
View File
@@ -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" }
)
-1
View File
@@ -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>