Favicons, page improvements

This commit is contained in:
2017-01-19 10:55:11 -05:00
parent d799363651
commit b80f02a25e
53 changed files with 174 additions and 36 deletions
+10 -4
View File
@@ -1,16 +1,22 @@
@model IEnumerable<ResultStatusViewModel>
@model QueueViewModel
@{
var grid = new WebGrid(Model, rowsPerPage: 45);
var grid = new WebGrid(Model.Items, rowsPerPage: 45);
}
<dl>
<dt>Service description</dt>
<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("Total Results: " + Model.Count(), format: item => Btns(item))),
grid.Column("Total Results: " + Model.Items.Count(), format: item => Btns(item))),
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
)
@grid.BootstrapPager()
@@ -78,7 +84,7 @@
}
@helper DeleteLink(dynamic item)
{
@Html.Partial("DisplayTemplates/_DeleteForm", (Tuple<int, bool>)Tuple.Create(item.LeafInputId, item.IsDeletable))
@Html.Partial("DisplayTemplates/_DeleteForm", (Tuple<int, string, bool>)Tuple.Create(item.LeafInputId, item.LeafInputIdentifier, item.IsDeletable))
}
@helper DisableItem(bool disabled)