Commit 519d0477 authored by Fatih Acet's avatar Fatih Acet

Merge branch '46429-creating-a-deploy-token-doesn-t-bring-back-to-the-creation-page' into 'master'

Resolve "Creating a deploy token doesn't bring back to the creation page"

Closes #46429

See merge request gitlab-org/gitlab-ce!19639
parents a170c587 f4ab8fe3
...@@ -208,6 +208,15 @@ table { ...@@ -208,6 +208,15 @@ table {
&:not(:last-of-type) { &:not(:last-of-type) {
border-bottom: 1px solid $well-inner-border; border-bottom: 1px solid $well-inner-border;
} }
p,
ol,
ul,
.form-group {
&:last-of-type {
margin-bottom: 0;
}
}
} }
.badge.badge-gray { .badge.badge-gray {
......
...@@ -296,7 +296,8 @@ ...@@ -296,7 +296,8 @@
} }
.btn-clipboard { .btn-clipboard {
margin-left: 5px; background-color: $white-light;
border: 1px solid $theme-gray-200;
} }
.deploy-token-help-block { .deploy-token-help-block {
......
...@@ -10,9 +10,8 @@ ...@@ -10,9 +10,8 @@
.settings-content .settings-content
- if @new_deploy_token.persisted? - if @new_deploy_token.persisted?
= render 'projects/deploy_tokens/new_deploy_token', deploy_token: @new_deploy_token = render 'projects/deploy_tokens/new_deploy_token', deploy_token: @new_deploy_token
- else %h5.prepend-top-0
%h5.prepend-top-0 = s_('DeployTokens|Add a deploy token')
= s_('DeployTokens|Add a deploy token') = render 'projects/deploy_tokens/form', project: @project, token: @new_deploy_token, presenter: @deploy_tokens
= render 'projects/deploy_tokens/form', project: @project, token: @new_deploy_token, presenter: @deploy_tokens %hr
%hr
= render 'projects/deploy_tokens/table', project: @project, active_tokens: @deploy_tokens = render 'projects/deploy_tokens/table', project: @project, active_tokens: @deploy_tokens
.created-deploy-token-container .created-deploy-token-container.info-well
%h5.prepend-top-0 .well-segment
= s_('DeployTokens|Your New Deploy Token') %h5.prepend-top-0
= s_('DeployTokens|Your New Deploy Token')
.form-group .form-group
= text_field_tag 'deploy-token-user', deploy_token.username, readonly: true, class: 'deploy-token-field form-control js-select-on-focus' .input-group
= clipboard_button(text: deploy_token.username, title: s_('DeployTokens|Copy username to clipboard'), placement: 'left') = text_field_tag 'deploy-token-user', deploy_token.username, readonly: true, class: 'deploy-token-field form-control js-select-on-focus'
%span.deploy-token-help-block.prepend-top-5.text-success= s_("DeployTokens|Use this username as a login.") .input-group-append
= clipboard_button(text: deploy_token.username, title: s_('DeployTokens|Copy username to clipboard'), placement: 'left')
%span.deploy-token-help-block.prepend-top-5.text-success= s_("DeployTokens|Use this username as a login.")
.form-group .form-group
= text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus' .input-group
= clipboard_button(text: deploy_token.token, title: s_('DeployTokens|Copy deploy token to clipboard'), placement: 'left') = text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus'
%span.deploy-token-help-block.prepend-top-5.text-danger= s_("DeployTokens|Use this token as a password. Make sure you save it - you won't be able to access it again.") .input-group-append
%hr = clipboard_button(text: deploy_token.token, title: s_('DeployTokens|Copy deploy token to clipboard'), placement: 'left')
%span.deploy-token-help-block.prepend-top-5.text-danger= s_("DeployTokens|Use this token as a password. Make sure you save it - you won't be able to access it again.")
---
title: Allows you to create another deploy token dimmediately after creating one
merge_request: 19639
author:
type: changed
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