Hide build-related UI elements when builds are disabled

Fixes https://jira.coreos.com/browse/QUAY-807
This commit is contained in:
Joseph Schorr 2018-01-31 18:09:38 -05:00
parent bc8e8f60e7
commit 1b707660de
5 changed files with 18 additions and 9 deletions

View file

@ -23,7 +23,14 @@
</div>
<!-- Builds -->
<div class="col-sm-7 builds-list">
<div class="col-sm-7 builds-list" ng-if="!Features.BUILD_SUPPORT">
<div class="right-pull-controls" style="width: 100%">
<div>Pull this container with the following Docker command:</div>
<div class="copy-box" hovering-message="true" value="pullCommand"></div>
</div>
</div>
<div class="col-sm-7 builds-list" ng-if="Features.BUILD_SUPPORT">
<div class="stat-title">Recent Repo Builds</div>
<!-- Loading -->
@ -64,7 +71,7 @@
field-title="repository description"></markdown-input>
</div>
</td>
<td style="width: 400px;" class="hidden-xs hidden-sm">
<td style="width: 400px;" class="hidden-xs hidden-sm" ng-if="Features.BUILD_SUPPORT">
<div class="right-pull-controls">
<div>Pull this container with the following Docker command:</div>
<div class="copy-box" hovering-message="true" value="pullCommand"></div>

View file

@ -85,13 +85,13 @@
<!-- Build Status Badge -->
<div class="co-panel hidden-xs" ng-if="repository.kind == 'image'">
<div class="co-panel hidden-xs" ng-if="repository.kind == 'image' && Features.BUILD_SUPPORT">
<div class="co-panel-heading"><i class="fa fa-tasks"></i> Build Status Badge</div>
<div class="cor-loader" ng-show="!repository"></div>
<div ng-show="repository">
<div class="panel-body panel-section">
<!-- Token Info Banner -->
<div class="co-alert co-alert-info" ng-if="!repository.is_public">
<div class="co-alert co-alert-info" ng-if="!repository.is_public" style="margin-bottom: 20px;">
Note: This badge contains a token so the badge can be seen by external users. The token does not grant any other access and is safe to share!
</div>