diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-21 11:21:14 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-11-01 09:20:31 +0000 |
commit | bdf7365d85af83512ca1ab316be7043ad5951f41 (patch) | |
tree | c38e5f214bd0c3a13136aafcf7da9d290ce742d0 /app/views/projects/edit.html.haml | |
parent | 266fcfb1935c8aa8c6ac3d2ae71530c441b08675 (diff) | |
download | gitlab-ce-bdf7365d85af83512ca1ab316be7043ad5951f41.tar.gz |
Hides registry if project is disabled
Diffstat (limited to 'app/views/projects/edit.html.haml')
-rw-r--r-- | app/views/projects/edit.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index 30473d14b9b..a91724f2f4d 100644 --- a/app/views/projects/edit.html.haml +++ b/app/views/projects/edit.html.haml @@ -102,7 +102,7 @@ = link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs') - if Gitlab.config.registry.enabled - .form-group + .form-group.js-container-registry{ style: ("display: none;" if @project.project_feature.send(:repository_access_level) == 0) } .checkbox = f.label :container_registry_enabled do = f.check_box :container_registry_enabled @@ -288,4 +288,4 @@ Saving project. %p Please wait a moment, this page will automatically refresh when ready. -= render 'shared/confirm_modal', phrase: @project.path
\ No newline at end of file += render 'shared/confirm_modal', phrase: @project.path |