Commit f4ab8fe3 authored by Sam Beckham's avatar Sam Beckham Committed by Fatih Acet

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

parent a170c587
...@@ -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,7 +10,6 @@ ...@@ -10,7 +10,6 @@
.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
......
.created-deploy-token-container .created-deploy-token-container.info-well
.well-segment
%h5.prepend-top-0 %h5.prepend-top-0
= s_('DeployTokens|Your New Deploy Token') = s_('DeployTokens|Your New Deploy Token')
.form-group .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' = 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') = 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.") %span.deploy-token-help-block.prepend-top-5.text-success= s_("DeployTokens|Use this username as a login.")
.form-group .form-group
.input-group
= text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus' = 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') = 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.") %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
---
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