Consolidate status markup.

Improved charting error reporting.
This commit is contained in:
2017-02-24 10:44:13 -05:00
parent 61cbc942c1
commit 3ff815082a
12 changed files with 119 additions and 72 deletions
+1 -22
View File
@@ -48,28 +48,7 @@ else
@helper Status(LeafInput leafInput)
{
if (leafInput.IsPending)
{
<span class="text-nowrap">
<span class="text-muted" title="@leafInput.PendingPriority.ToString() Priority">
@Html.Partial("DisplayTemplates/PriorityIcon", leafInput.PendingPriority)
</span>
@Html.Partial("DisplayTemplates/_LeafInputStatus", leafInput.CurrentStatus.ToString())
</span>
}
else
{
<span class="text-nowrap">
@Html.Partial("DisplayTemplates/_LeafInputStatus", leafInput.CurrentStatus.ToString())
@if (leafInput.OutputErrorMessage != null)
{
<i class="fa fa-warning text-danger" title="Generated Error Message"></i>
} else if (leafInput.OutputWarningMessage != null)
{
<i class="fa fa-warning text-info" title="Generated Warning Message"></i>
}
</span>
}
@Html.Partial("DisplayTemplates/_LeafInputStatus", leafInput)
}
@helper Btns(LeafInput item)