Hide build-related UI elements when builds are disabled
Fixes https://jira.coreos.com/browse/QUAY-807
This commit is contained in:
parent
bc8e8f60e7
commit
1b707660de
5 changed files with 18 additions and 9 deletions
|
@ -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>
|
||||
|
||||
|
|
Reference in a new issue