mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
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:
commit
2337ebd811
|
@ -73,7 +73,7 @@
|
|||
</div>
|
||||
<div class="build-foot">
|
||||
<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>
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.Lab, new { @class = "control-label col-sm-2" })
|
||||
<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>
|
||||
|
||||
|
@ -90,7 +90,7 @@
|
|||
</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">
|
||||
@Html.LabelFor(model => model.FlightLevel, new { @class = "control-label col-sm-2" })
|
||||
|
|
Loading…
Reference in New Issue
Block a user