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

@ -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>