Commit 9aba155a authored by Mike Jang's avatar Mike Jang Committed by Nicolò Maria Mezzopera

Update UI text for deploy tokens

Restore gitlab pot timestamps
parent a7ccd3d2
- breadcrumb_title _('Repository Settings') - breadcrumb_title _('Repository Settings')
- page_title _('Repository') - page_title _('Repository')
- deploy_token_description = s_('DeployTokens|Group deploy tokens allow access to the packages, repositories, and registry images within the group.') - deploy_token_description = s_('DeployTokens|Group Deploy Tokens allow access to the packages, repositories, and registry images within the group.')
= render "shared/deploy_tokens/index", group_or_project: @group, description: deploy_token_description = render "shared/deploy_tokens/index", group_or_project: @group, description: deploy_token_description
= render "initial_branch_name", group: @group = render "initial_branch_name", group: @group
- breadcrumb_title _("Repository Settings") - breadcrumb_title _("Repository Settings")
- page_title _("Repository") - page_title _("Repository")
- @content_class = "limit-container-width" unless fluid_layout - @content_class = "limit-container-width" unless fluid_layout
- deploy_token_description = s_('DeployTokens|Deploy tokens allow access to packages, your repository, and registry images.') - deploy_token_description = s_('DeployTokens|Deploy Tokens allow access to packages, your repository, and registry images.')
= render "projects/default_branch/show" = render "projects/default_branch/show"
= render_if_exists "projects/push_rules/index" = render_if_exists "projects/push_rules/index"
......
%p.profile-settings-content %p.profile-settings-content
= s_("DeployTokens|Pick a name for the application, and we'll give you a unique deploy token.") = s_("DeployTokens|Pick a name for your unique deploy token.")
= form_for token, url: create_deploy_token_path(group_or_project, anchor: 'js-deploy-tokens'), method: :post, remote: Feature.enabled?(:ajax_new_deploy_token, group_or_project) do |f| = form_for token, url: create_deploy_token_path(group_or_project, anchor: 'js-deploy-tokens'), method: :post, remote: Feature.enabled?(:ajax_new_deploy_token, group_or_project) do |f|
= form_errors(token) = form_errors(token)
...@@ -9,42 +9,43 @@ ...@@ -9,42 +9,43 @@
= f.text_field :name, class: 'form-control gl-form-input qa-deploy-token-name', required: true = f.text_field :name, class: 'form-control gl-form-input qa-deploy-token-name', required: true
.form-group .form-group
= f.label :expires_at, class: 'label-bold' = f.label :expires_at, _('Expires at (optional)'), class: 'label-bold'
= f.text_field :expires_at, class: 'datepicker form-control gl-form-input qa-deploy-token-expires-at', value: f.object.expires_at = f.text_field :expires_at, class: 'datepicker form-control qa-deploy-token-expires-at', value: f.object.expires_at
.text-secondary= s_('DeployTokens|Unless you enter a date, the token does not expire.')
.form-group .form-group
= f.label :username, class: 'label-bold' = f.label :username, _('Username (optional)'), class: 'label-bold'
= f.text_field :username, class: 'form-control gl-form-input qa-deploy-token-username' = f.text_field :username, class: 'form-control qa-deploy-token-username'
.text-secondary= s_('DeployTokens|Default format is "gitlab+deploy-token-{n}". Enter custom username if you want to change it.') .text-secondary= s_('DeployTokens|Unless you specify a username, it is set to "gitlab+deploy-token-{n}".')
.form-group .form-group
= f.label :scopes, class: 'label-bold' = f.label :scopes, _('Scopes [Select 1 or more]'), class: 'label-bold'
%fieldset.form-group.form-check %fieldset.form-group.form-check
= f.check_box :read_repository, class: 'form-check-input qa-deploy-token-read-repository' = f.check_box :read_repository, class: 'form-check-input qa-deploy-token-read-repository'
= label_tag ("deploy_token_read_repository"), 'read_repository', class: 'label-bold form-check-label' = label_tag ("deploy_token_read_repository"), 'read_repository', class: 'label-bold form-check-label'
.text-secondary= s_('DeployTokens|Allows read-only access to the repository') .text-secondary= s_('DeployTokens|Allows read-only access to the repository.')
- if container_registry_enabled?(group_or_project) - if container_registry_enabled?(group_or_project)
%fieldset.form-group.form-check %fieldset.form-group.form-check
= f.check_box :read_registry, class: 'form-check-input qa-deploy-token-read-registry' = f.check_box :read_registry, class: 'form-check-input qa-deploy-token-read-registry'
= label_tag ("deploy_token_read_registry"), 'read_registry', class: 'label-bold form-check-label' = label_tag ("deploy_token_read_registry"), 'read_registry', class: 'label-bold form-check-label'
.text-secondary= s_('DeployTokens|Allows read-only access to the registry images') .text-secondary= s_('DeployTokens|Allows read-only access to registry images.')
%fieldset.form-group.form-check %fieldset.form-group.form-check
= f.check_box :write_registry, class: 'form-check-input' = f.check_box :write_registry, class: 'form-check-input'
= label_tag ("deploy_token_write_registry"), 'write_registry', class: 'label-bold form-check-label' = label_tag ("deploy_token_write_registry"), 'write_registry', class: 'label-bold form-check-label'
.text-secondary= s_('DeployTokens|Allows write access to the registry images') .text-secondary= s_('DeployTokens|Allows write access to registry images.')
- if packages_registry_enabled?(group_or_project) - if packages_registry_enabled?(group_or_project)
%fieldset.form-group.form-check %fieldset.form-group.form-check
= f.check_box :read_package_registry, class: 'form-check-input' = f.check_box :read_package_registry, class: 'form-check-input'
= label_tag ("deploy_token_read_package_registry"), 'read_package_registry', class: 'label-bold form-check-label' = label_tag ("deploy_token_read_package_registry"), 'read_package_registry', class: 'label-bold form-check-label'
.text-secondary= s_('DeployTokens|Allows read access to the package registry') .text-secondary= s_('DeployTokens|Allows read access to the package registry.')
%fieldset.form-group.form-check %fieldset.form-group.form-check
= f.check_box :write_package_registry, class: 'form-check-input' = f.check_box :write_package_registry, class: 'form-check-input'
= label_tag ("deploy_token_write_package_registry"), 'write_package_registry', class: 'label-bold form-check-label' = label_tag ("deploy_token_write_package_registry"), 'write_package_registry', class: 'label-bold form-check-label'
.text-secondary= s_('DeployTokens|Allows write access to the package registry') .text-secondary= s_('DeployTokens|Allows write access to the package registry.')
.gl-mt-3 .gl-mt-3
= f.submit s_('DeployTokens|Create deploy token'), class: 'btn gl-button btn-success qa-create-deploy-token' = f.submit s_('DeployTokens|Create deploy token'), class: 'btn gl-button btn-success qa-create-deploy-token'
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
- if @new_deploy_token.persisted? - if @new_deploy_token.persisted?
= render 'shared/deploy_tokens/new_deploy_token', deploy_token: @new_deploy_token = render 'shared/deploy_tokens/new_deploy_token', deploy_token: @new_deploy_token
%h5.gl-mt-0 %h5.gl-mt-0
= s_('DeployTokens|Add a deploy token') = s_('DeployTokens|Add a Deploy Token')
= render 'shared/deploy_tokens/form', group_or_project: group_or_project, token: @new_deploy_token, presenter: @deploy_tokens = render 'shared/deploy_tokens/form', group_or_project: group_or_project, token: @new_deploy_token, presenter: @deploy_tokens
%hr %hr
= render 'shared/deploy_tokens/table', group_or_project: group_or_project, active_tokens: @deploy_tokens = render 'shared/deploy_tokens/table', group_or_project: group_or_project, active_tokens: @deploy_tokens
......
.qa-created-deploy-token-section.created-deploy-token-container.info-well .qa-created-deploy-token-section.created-deploy-token-container.info-well
.well-segment .well-segment
%h5.gl-mt-0 %h5.gl-mt-0
= s_('DeployTokens|Your New Deploy Token') = s_('DeployTokens|Your new Deploy Token username')
.form-group .form-group
.input-group .input-group
= text_field_tag 'deploy-token-user', deploy_token.username, readonly: true, class: 'deploy-token-field form-control js-select-on-focus qa-deploy-token-user' = text_field_tag 'deploy-token-user', deploy_token.username, readonly: true, class: 'deploy-token-field form-control js-select-on-focus qa-deploy-token-user'
.input-group-append .input-group-append
= clipboard_button(text: deploy_token.username, title: s_('DeployTokens|Copy username'), placement: 'left') = clipboard_button(text: deploy_token.username, title: s_('DeployTokens|Copy username'), placement: 'left')
%span.deploy-token-help-block.gl-mt-2.text-success= s_("DeployTokens|Use this username as a login.") %span.deploy-token-help-block.gl-mt-2.text-success
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/deploy_tokens/index.md') }
- link_end = "</a>".html_safe
= s_("DeployTokens|This username supports access. %{link_start}What kind of access?%{link_end}").html_safe % { link_start: link_start, link_end: link_end }
.form-group .form-group
.input-group .input-group
= text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus qa-deploy-token' = text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus qa-deploy-token'
.input-group-append .input-group-append
= clipboard_button(text: deploy_token.token, title: s_('DeployTokens|Copy deploy token'), placement: 'left') = clipboard_button(text: deploy_token.token, title: s_('DeployTokens|Copy deploy token'), placement: 'left')
%span.deploy-token-help-block.gl-mt-2.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.gl-mt-2.text-danger
- i_start = "<i>".html_safe
- i_end = "</i>".html_safe
= s_("DeployTokens|Use this token as a password. Save it. This password can %{i_start}not%{i_end} be recovered.").html_safe % { i_start: i_start, i_end: i_end }
---
title: Updated UI text to match style guidelines
merge_request: 52267
author:
type: other
...@@ -67,7 +67,7 @@ following table along with GitLab version it was introduced in: ...@@ -67,7 +67,7 @@ following table along with GitLab version it was introduced in:
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/29639) in GitLab 12.1. > [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/29639) in GitLab 12.1.
The default username format is `gitlab+deploy-token-#{n}`. Some tools or The default username format is `gitlab+deploy-token-{n}`. Some tools or
platforms may not support this format; in this case you can specify a custom platforms may not support this format; in this case you can specify a custom
username to be used when creating the deploy token. username to be used when creating the deploy token.
......
...@@ -9684,22 +9684,22 @@ msgstr "" ...@@ -9684,22 +9684,22 @@ msgstr ""
msgid "DeployTokens|Active Deploy Tokens (%{active_tokens})" msgid "DeployTokens|Active Deploy Tokens (%{active_tokens})"
msgstr "" msgstr ""
msgid "DeployTokens|Add a deploy token" msgid "DeployTokens|Add a Deploy Token"
msgstr "" msgstr ""
msgid "DeployTokens|Allows read access to the package registry" msgid "DeployTokens|Allows read access to the package registry."
msgstr "" msgstr ""
msgid "DeployTokens|Allows read-only access to the registry images" msgid "DeployTokens|Allows read-only access to registry images."
msgstr "" msgstr ""
msgid "DeployTokens|Allows read-only access to the repository" msgid "DeployTokens|Allows read-only access to the repository."
msgstr "" msgstr ""
msgid "DeployTokens|Allows write access to the package registry" msgid "DeployTokens|Allows write access to registry images."
msgstr "" msgstr ""
msgid "DeployTokens|Allows write access to the registry images" msgid "DeployTokens|Allows write access to the package registry."
msgstr "" msgstr ""
msgid "DeployTokens|Copy deploy token" msgid "DeployTokens|Copy deploy token"
...@@ -9714,25 +9714,22 @@ msgstr "" ...@@ -9714,25 +9714,22 @@ msgstr ""
msgid "DeployTokens|Created" msgid "DeployTokens|Created"
msgstr "" msgstr ""
msgid "DeployTokens|Default format is \"gitlab+deploy-token-{n}\". Enter custom username if you want to change it."
msgstr ""
msgid "DeployTokens|Deploy Tokens" msgid "DeployTokens|Deploy Tokens"
msgstr "" msgstr ""
msgid "DeployTokens|Deploy tokens allow access to packages, your repository, and registry images." msgid "DeployTokens|Deploy Tokens allow access to packages, your repository, and registry images."
msgstr "" msgstr ""
msgid "DeployTokens|Expires" msgid "DeployTokens|Expires"
msgstr "" msgstr ""
msgid "DeployTokens|Group deploy tokens allow access to the packages, repositories, and registry images within the group." msgid "DeployTokens|Group Deploy Tokens allow access to the packages, repositories, and registry images within the group."
msgstr "" msgstr ""
msgid "DeployTokens|Name" msgid "DeployTokens|Name"
msgstr "" msgstr ""
msgid "DeployTokens|Pick a name for the application, and we'll give you a unique deploy token." msgid "DeployTokens|Pick a name for your unique deploy token."
msgstr "" msgstr ""
msgid "DeployTokens|Revoke" msgid "DeployTokens|Revoke"
...@@ -9753,10 +9750,16 @@ msgstr "" ...@@ -9753,10 +9750,16 @@ msgstr ""
msgid "DeployTokens|This action cannot be undone." msgid "DeployTokens|This action cannot be undone."
msgstr "" msgstr ""
msgid "DeployTokens|Use this token as a password. Make sure you save it - you won't be able to access it again." msgid "DeployTokens|This username supports access. %{link_start}What kind of access?%{link_end}"
msgstr ""
msgid "DeployTokens|Unless you enter a date, the token does not expire."
msgstr ""
msgid "DeployTokens|Unless you specify a username, it is set to \"gitlab+deploy-token-{n}\"."
msgstr "" msgstr ""
msgid "DeployTokens|Use this username as a login." msgid "DeployTokens|Use this token as a password. Save it. This password can %{i_start}not%{i_end} be recovered."
msgstr "" msgstr ""
msgid "DeployTokens|Username" msgid "DeployTokens|Username"
...@@ -9765,7 +9768,7 @@ msgstr "" ...@@ -9765,7 +9768,7 @@ msgstr ""
msgid "DeployTokens|You are about to revoke %{b_start}%{name}%{b_end}." msgid "DeployTokens|You are about to revoke %{b_start}%{name}%{b_end}."
msgstr "" msgstr ""
msgid "DeployTokens|Your New Deploy Token" msgid "DeployTokens|Your new Deploy Token username"
msgstr "" msgstr ""
msgid "DeployTokens|Your new group deploy token has been created." msgid "DeployTokens|Your new group deploy token has been created."
...@@ -11876,6 +11879,9 @@ msgstr "" ...@@ -11876,6 +11879,9 @@ msgstr ""
msgid "Expires at" msgid "Expires at"
msgstr "" msgstr ""
msgid "Expires at (optional)"
msgstr ""
msgid "Expires in %{expires_at}" msgid "Expires in %{expires_at}"
msgstr "" msgstr ""
...@@ -25339,6 +25345,9 @@ msgstr "" ...@@ -25339,6 +25345,9 @@ msgstr ""
msgid "Scopes" msgid "Scopes"
msgstr "" msgstr ""
msgid "Scopes [Select 1 or more]"
msgstr ""
msgid "Scopes can't be blank" msgid "Scopes can't be blank"
msgstr "" msgstr ""
......
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