Commit 4736e051 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'deploy_tokens_view_improvement' into 'master'

Update _form.html.haml (deploy tokens) to improve display of scopes

See merge request gitlab-org/gitlab-ce!20578
parents d8118902 7a5b5f1e
...@@ -14,16 +14,16 @@ ...@@ -14,16 +14,16 @@
.form-group .form-group
= f.label :scopes, class: 'label-light' = f.label :scopes, class: 'label-light'
%fieldset %fieldset.form-group.form-check
= f.check_box :read_repository = f.check_box :read_repository, class: 'form-check-input'
= label_tag ("deploy_token_read_repository"), 'read_repository' = label_tag ("deploy_token_read_repository"), 'read_repository', class: 'label-light form-check-label'
%span= s_('DeployTokens|Allows read-only access to the repository') .text-secondary= s_('DeployTokens|Allows read-only access to the repository')
- if container_registry_enabled?(project) - if container_registry_enabled?(project)
%fieldset %fieldset.form-group.form-check
= f.check_box :read_registry = f.check_box :read_registry, class: 'form-check-input'
= label_tag ("deploy_token_read_registry"), 'read_registry' = label_tag ("deploy_token_read_registry"), 'read_registry', class: 'label-light form-check-label'
%span= s_('DeployTokens|Allows read-only access to the registry images') .text-secondary= s_('DeployTokens|Allows read-only access to the registry images')
.prepend-top-default .prepend-top-default
= f.submit s_('DeployTokens|Create deploy token'), class: 'btn btn-success' = f.submit s_('DeployTokens|Create deploy token'), class: 'btn btn-success'
---
title: "Cleans up display of Deploy Tokens to match Personal Access Tokens"
merge_request: 20578
author: Marcel Amirault
type: added
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment