Refactor Miles into log output
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
{
|
||||
if (item.PreviousLogId != null)
|
||||
{
|
||||
string miles = (item.EndOdometer - item.PreviousLogEndOdometer).ToString();
|
||||
string miles = (item.Miles).ToString();
|
||||
return Html.ActionLink(miles, "DetailsPartial", new { id = item.PreviousLogId }, new { @class = "qtip-modal" });
|
||||
}
|
||||
return Html.Raw("<span class='miles-unknown'>?</span>");
|
||||
@@ -56,7 +56,7 @@
|
||||
grid.Column("GasPurchased", "Gas", item => item.GasPurchased > 0 ? String.Format("{0:0.000}", item.GasPurchased) : string.Empty),
|
||||
grid.Column("Date", format: item => item.Date.ToString("d")),
|
||||
grid.Column("CityName", "City Name"),
|
||||
grid.Column("Driver Name", format: item => item.User != null ? item.User.FullName : ""),
|
||||
grid.Column("Driver Name", format: item => item.UserFullName),
|
||||
grid.Column(format:
|
||||
@<div class='btn-group'>
|
||||
@Html.ActionLink("Edit", "Edit", new { id = item.LogId }, new { @class = "btn btn-mini" })
|
||||
|
||||
Reference in New Issue
Block a user