@model MileageTraker.Web.ViewModels.FuelLog.MatchLinkViewModel @{ Layout = null; } @if (Model.LogId != null) { @Html.ActionLink("View Match", "Match", new {id = Model.FuelLogId}, new {@class = "btn btn-mini", target = "_blank"}) } else { @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}) }) }