@model BuildFeed.Models.Build @{ ViewBag.Title = Model.FullBuildString + " | BuildFeed"; } @section head { @if (Model.BuildTime.HasValue) { } else { } }

@Model.FullBuildString

@if (User.Identity.IsAuthenticated) {

@Html.ActionLink("Edit", "editBuild", new { id = Model.Id }, new { @class = "btn btn-default btn-xs" }) @if (Roles.IsUserInRole("Administrators")) { @Html.ActionLink("Delete", "delete", new { id = Model.Id }, new { @class = "btn btn-danger btn-xs" }) }

}
@Html.LabelFor(model => model.MajorVersion, new { @class = "control-label col-sm-4" })

@Html.DisplayFor(model => model.MajorVersion)

@Html.LabelFor(model => model.MinorVersion, new { @class = "control-label col-sm-4" })

@Html.DisplayFor(model => model.MinorVersion)

@Html.LabelFor(model => model.Number, new { @class = "control-label col-sm-4" })

@Html.DisplayFor(model => model.Number)

@Html.LabelFor(model => model.Revision, new { @class = "control-label col-sm-4" })

@Html.DisplayFor(model => model.Revision)

@Html.LabelFor(model => model.Lab, new { @class = "control-label col-sm-4" })
@Html.LabelFor(model => model.BuildTime, new { @class = "control-label col-sm-4" })

@if (Model.BuildTime.HasValue) {
Find more builds compiled in @Model.BuildTime.Value.Year }

@Html.LabelFor(model => model.SourceType, new { @class = "control-label" })

@Html.DisplayFor(model => model.SourceType, "Enumeration")
Find more builds sourced from @Html.DisplayFor(model => model.SourceType, "Enumeration")

@if (Model.LeakDate.HasValue) {
@Html.LabelFor(model => model.LeakDate, new { @class = "control-label" })
} @if ((Model.MajorVersion == 6 && Model.MinorVersion == 4) || (Model.MajorVersion == 10 && Model.MinorVersion == 0) && Model.FlightLevel != BuildFeed.Models.LevelOfFlight.None) {
@Html.LabelFor(model => model.FlightLevel, new { @class = "control-label" })

@Html.DisplayFor(model => model.FlightLevel, "Enumeration")

}
@Html.LabelFor(model => model.SourceDetails, new { @class = "control-label" })
@Html.Raw(Model.SourceDetails)
@section scripts { }