Add run time to queue
This commit is contained in:
@@ -9,13 +9,14 @@
|
||||
<dd>@Model.ServerDescription</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@grid.Table(columns:
|
||||
grid.Columns(
|
||||
grid.Column("LeafInputIdentifier", "Identifier"),
|
||||
grid.Column("LeafInputSiteId", "Site Id"),
|
||||
grid.Column("LeafInputName", "Submitted By"),
|
||||
grid.Column("CurrentStatus", "Status", item => Html.Partial("DisplayTemplates/_LeafInputStatus", (string)item.CurrentStatus)),
|
||||
grid.Column("Identifier", "Identifier"),
|
||||
grid.Column("SiteId", "Site Id"),
|
||||
grid.Column("Name", "Submitted By"),
|
||||
//grid.Column("FileCount", "Input files"),
|
||||
grid.Column("TotalInProgressTime", "In-Progress Time", item => ((TimeSpan)item.TotalInProgressTime).ToRoundedReadableString()),
|
||||
grid.Column("CurrentStatus", "Status", item => Html.Partial("DisplayTemplates/_LeafInputStatus", (string)item.CurrentStatus.ToString())),
|
||||
grid.Column("Total Results: " + Model.Items.Count(), format: item => Btns(item))),
|
||||
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
|
||||
)
|
||||
@@ -54,47 +55,47 @@
|
||||
|
||||
@helper DetailsLink(dynamic item)
|
||||
{
|
||||
@Html.Partial("DisplayTemplates/_DetailsLink", (int)item.LeafInputId)
|
||||
@Html.Partial("DisplayTemplates/_DetailsLink", (int)item.Id)
|
||||
}
|
||||
|
||||
@helper ChartLink(dynamic item)
|
||||
{
|
||||
@Html.Partial("DisplayTemplates/_ChartLink", (int)item.LeafInputId)
|
||||
@Html.Partial("DisplayTemplates/_ChartLink", (int)item.Id)
|
||||
}
|
||||
|
||||
@helper SetPriorityHigh(dynamic item, string label)
|
||||
{
|
||||
<a href="@Url.Action("SetPriorityHigh", "Queue", new {id = item.LeafInputId})">
|
||||
<a href="@Url.Action("SetPriorityHigh", "Queue", new {id = item.Id})">
|
||||
<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})">
|
||||
<a href="@Url.Action("SetPriorityLow", "Queue", new {id = item.Id})">
|
||||
<span class="glyphicon glyphicon-arrow-down"></span> @label
|
||||
</a>
|
||||
}
|
||||
|
||||
@helper DownloadInput(dynamic item)
|
||||
{
|
||||
<a href="@Url.Action("DownloadInput", "Queue", new {id = item.LeafInputId})">
|
||||
<a href="@Url.Action("DownloadInput", "Queue", new {id = item.Id})">
|
||||
<span class="glyphicon glyphicon-download"></span> Input
|
||||
</a>
|
||||
}
|
||||
@helper DownloadOutputToUser(dynamic item)
|
||||
{
|
||||
<a href="@Url.Action("DownloadOutputToUser", "Queue", new {id = item.LeafInputId})">
|
||||
<a href="@Url.Action("DownloadOutputToUser", "Queue", new {id = item.Id})">
|
||||
<span class="glyphicon glyphicon-download"></span> ToUser
|
||||
</a>
|
||||
}
|
||||
@helper DeleteLink(dynamic item)
|
||||
{
|
||||
@Html.Partial("DisplayTemplates/_DeleteForm", (Tuple<int, string, bool>)Tuple.Create(item.LeafInputId, item.LeafInputIdentifier, item.IsDeletable))
|
||||
@Html.Partial("DisplayTemplates/_DeleteForm", (Tuple<int, string, bool>)Tuple.Create(item.Id, item.Identifier, item.IsDeletable))
|
||||
}
|
||||
|
||||
@helper CancelLink(dynamic item)
|
||||
{
|
||||
@Html.Partial("DisplayTemplates/_CancelForm", (Tuple<int, string>)Tuple.Create(item.LeafInputId, item.LeafInputIdentifier))
|
||||
@Html.Partial("DisplayTemplates/_CancelForm", (Tuple<int, string>)Tuple.Create(item.Id, item.Identifier))
|
||||
}
|
||||
|
||||
@helper DisableItem(bool disabled)
|
||||
|
||||
Reference in New Issue
Block a user