Merge pull request #3 from nickurt/some-build-info-improvements

BuildInfoPage a link to the lab page, fixed the FlightLevel Major/Minor check
This commit is contained in:
Thomas Hounsell 2014-12-31 14:09:45 +00:00
commit 2337ebd811
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@
</div> </div>
<div class="build-foot"> <div class="build-foot">
<span class="badge">@Html.DisplayFor(TypeOfSource => item.SourceType, "Enumeration")</span> <span class="badge">@Html.DisplayFor(TypeOfSource => item.SourceType, "Enumeration")</span>
@if (item.FlightLevel != BuildFeed.Models.LevelOfFlight.None) @if ( (item.MajorVersion == 6 && item.MinorVersion == 4) || (item.MajorVersion == 10 && item.MinorVersion == 0) && item.FlightLevel != BuildFeed.Models.LevelOfFlight.None)
{ {
<span class="badge">Flight Level: @Html.DisplayFor(TypeOfSource => item.FlightLevel, "Enumeration")</span> <span class="badge">Flight Level: @Html.DisplayFor(TypeOfSource => item.FlightLevel, "Enumeration")</span>
} }

View File

@ -65,7 +65,7 @@
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.Lab, new { @class = "control-label col-sm-2" }) @Html.LabelFor(model => model.Lab, new { @class = "control-label col-sm-2" })
<div class="col-sm-10"> <div class="col-sm-10">
<p class="form-control-static">@Html.DisplayFor(model => model.Lab)</p> <p class="form-control-static">@Html.ActionLink(Model.Lab, "lab", new { lab = Model.Lab })</p>
</div> </div>
</div> </div>
@ -90,7 +90,7 @@
</div> </div>
</div> </div>
@if (Model.MajorVersion == 6 && Model.MinorVersion == 4 && Model.FlightLevel != BuildFeed.Models.LevelOfFlight.None) @if ( (Model.MajorVersion == 6 && Model.MinorVersion == 4) || (Model.MajorVersion == 10 && Model.MinorVersion == 0) && Model.FlightLevel != BuildFeed.Models.LevelOfFlight.None)
{ {
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.FlightLevel, new { @class = "control-label col-sm-2" }) @Html.LabelFor(model => model.FlightLevel, new { @class = "control-label col-sm-2" })