Resolve "Creating a deploy token doesn't bring back to the creation page"
This commit is contained in:
parent
a170c587a0
commit
f4ab8fe3a7
|
@ -208,6 +208,15 @@ table {
|
|||
&:not(:last-of-type) {
|
||||
border-bottom: 1px solid $well-inner-border;
|
||||
}
|
||||
|
||||
p,
|
||||
ol,
|
||||
ul,
|
||||
.form-group {
|
||||
&:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.badge.badge-gray {
|
||||
|
|
|
@ -296,7 +296,8 @@
|
|||
}
|
||||
|
||||
.btn-clipboard {
|
||||
margin-left: 5px;
|
||||
background-color: $white-light;
|
||||
border: 1px solid $theme-gray-200;
|
||||
}
|
||||
|
||||
.deploy-token-help-block {
|
||||
|
|
|
@ -10,9 +10,8 @@
|
|||
.settings-content
|
||||
- if @new_deploy_token.persisted?
|
||||
= render 'projects/deploy_tokens/new_deploy_token', deploy_token: @new_deploy_token
|
||||
- else
|
||||
%h5.prepend-top-0
|
||||
= s_('DeployTokens|Add a deploy token')
|
||||
= render 'projects/deploy_tokens/form', project: @project, token: @new_deploy_token, presenter: @deploy_tokens
|
||||
%hr
|
||||
%h5.prepend-top-0
|
||||
= s_('DeployTokens|Add a deploy token')
|
||||
= render 'projects/deploy_tokens/form', project: @project, token: @new_deploy_token, presenter: @deploy_tokens
|
||||
%hr
|
||||
= render 'projects/deploy_tokens/table', project: @project, active_tokens: @deploy_tokens
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
.created-deploy-token-container
|
||||
%h5.prepend-top-0
|
||||
= s_('DeployTokens|Your New Deploy Token')
|
||||
.created-deploy-token-container.info-well
|
||||
.well-segment
|
||||
%h5.prepend-top-0
|
||||
= s_('DeployTokens|Your New Deploy Token')
|
||||
|
||||
.form-group
|
||||
= text_field_tag 'deploy-token-user', deploy_token.username, readonly: true, class: 'deploy-token-field form-control js-select-on-focus'
|
||||
= 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
|
||||
.input-group
|
||||
= text_field_tag 'deploy-token-user', deploy_token.username, readonly: true, class: 'deploy-token-field form-control js-select-on-focus'
|
||||
.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
|
||||
= text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus'
|
||||
= 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.")
|
||||
%hr
|
||||
.form-group
|
||||
.input-group
|
||||
= text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus'
|
||||
.input-group-append
|
||||
= 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.")
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Allows you to create another deploy token dimmediately after creating one
|
||||
merge_request: 19639
|
||||
author:
|
||||
type: changed
|
Loading…
Reference in New Issue