Match count update for import too
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@using MileageTraker.Web.Utility
|
||||
@using MileageTraker.Web.ViewModels.FuelLog
|
||||
@model MileageTraker.Web.ViewModels.FuelLog.FuelLogResultsViewModel
|
||||
|
||||
@{
|
||||
@@ -44,15 +45,7 @@
|
||||
grid.Column("MPG"),
|
||||
grid.Column("GasPurchased", "Gas Purchased", @<text>@String.Format("{0:0.000}", item.GasPurchased)</text>),
|
||||
grid.Column("TotalPrice", "Total Price", @<text>@String.Format("{0:C}", item.TotalPrice)</text>),
|
||||
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",
|
||||
matchcount=Url.Action("AvailableMatchCount", "FuelLog", new {id = item.FuelLogId})
|
||||
}))
|
||||
</text>)),
|
||||
grid.Column("Log", "Matched Log", item => @Html.Partial("MatchLink", new MatchLinkViewModel (item.FuelLogId, item.LogId)))),
|
||||
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed"},
|
||||
numericLinksCount: 20
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user