From 1b707660de96b4dc3a416fdd7a5f21a086d04e8c Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 31 Jan 2018 18:09:38 -0500 Subject: [PATCH] Hide build-related UI elements when builds are disabled Fixes https://jira.coreos.com/browse/QUAY-807 --- static/directives/header-bar.html | 6 +++--- static/directives/repo-view/repo-panel-info.html | 11 +++++++++-- static/directives/repo-view/repo-panel-settings.html | 4 ++-- static/js/directives/repo-view/repo-panel-settings.js | 3 ++- static/partials/super-user.html | 3 ++- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/static/directives/header-bar.html b/static/directives/header-bar.html index 1e3476d04..168d3c572 100644 --- a/static/directives/header-bar.html +++ b/static/directives/header-bar.html @@ -88,14 +88,14 @@ New Robot Account - +
  • + !currentPageContext.repository.tag_operations_disabled && Features.BUILD_SUPPORT"> New Dockerfile Build diff --git a/static/directives/repo-view/repo-panel-info.html b/static/directives/repo-view/repo-panel-info.html index 390f80d3d..a5b37f4a0 100644 --- a/static/directives/repo-view/repo-panel-info.html +++ b/static/directives/repo-view/repo-panel-info.html @@ -23,7 +23,14 @@ -
    +
    +
    +
    Pull this container with the following Docker command:
    +
    +
    +
    + +
    Recent Repo Builds
    @@ -64,7 +71,7 @@ field-title="repository description">
    - +
    Pull this container with the following Docker command:
    diff --git a/static/directives/repo-view/repo-panel-settings.html b/static/directives/repo-view/repo-panel-settings.html index 1a34cbdae..0c97bf1cd 100644 --- a/static/directives/repo-view/repo-panel-settings.html +++ b/static/directives/repo-view/repo-panel-settings.html @@ -85,13 +85,13 @@ -