Match count badges

This commit is contained in:
2015-10-13 20:39:51 -04:00
parent 49c55ffba6
commit 78e8924bfa
4 changed files with 59 additions and 17 deletions
+5 -1
View File
@@ -47,7 +47,11 @@
grid.Column("Log", "Matched Log", @<text>
@(item.LogId != null
? Html.ActionLink("View Match", "Match", new {id = item.FuelLogId}, new {@class = "btn btn-mini", target="_blank"})
: Html.ActionLink("Match", "Match", new {id = item.FuelLogId}, new {@class = "btn btn-warning btn-mini", target="_blank"}))
: Html.ActionLink("Match", "Match", new {id = item.FuelLogId},
new {@class = "btn btn-warning btn-mini",
target="_blank",
matchcount=Url.Action("AvailableMatchCount", "FuelLog", new {id = item.FuelLogId})
}))
</text>)),
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed"},
numericLinksCount: 20
+5 -1
View File
@@ -8,5 +8,9 @@
}
else
{
@Html.ActionLink("Match", "Match", new {id = Model.FuelLogId}, new {@class = "btn btn-warning btn-mini", target = "_blank"})
@Html.ActionLink("Match", "Match", new {id = Model.FuelLogId},
new {@class = "btn btn-warning btn-mini",
target="_blank",
matchcount=Url.Action("AvailableMatchCount", "FuelLog", new {id = Model.FuelLogId})
})
}