@model MileageTraker.Web.ViewModels.Vehicle.VehicleMileageViewModel @{ ViewBag.Title = "Vehicle Mileage Report"; } @{ Html.RenderPartial("BackToLogs"); } @Html.Partial("_StatusMessage")

@ViewBag.Title

@Html.DisplayNameFor(m => m.Query.Year)
@Html.Encode(Model.Query.Year)
@Html.DisplayNameFor(m => m.Query.Month)
@Html.Encode(Model.Query.Month)
@if (Model.Query.LogType.HasValue) {
Type
@Html.Encode(Model.Query.LogType)
}
@foreach (var item in Model.Items) { }
Vehicle Id Prog Total Miles Total Gas Purchased Miles Per Gallon
@Html.ActionLink(item.VehicleId, "Details", "Vehicle", new { id = item.VehicleId }, null) @Html.DisplayTextFor(i => item.Prog) lp.Item1 == null)){ @:class="ui-state-error" }> @Html.DisplayTextFor(i => item.Miles) @Html.Partial("LogsSummary", item.LogPairs) @Html.DisplayTextFor(i => item.GasPurchased) @(item.MilesPerGallon > 0 ? string.Format("{0:0.000}", item.MilesPerGallon) : "")
Total: @Html.DisplayTextFor(m => m.TotalMiles) @Html.DisplayTextFor(m => m.TotalGasPurchased)