Commit 8829e7b5 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '247476-remove-angle-brackets-in-no-scopes' into 'master'

Remove brackets in "no scopes selected" message

See merge request gitlab-org/gitlab!47628
parents 2bb6d7d1 a14ab73d
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
= _('In %{time_to_now}') % { time_to_now: distance_of_time_in_words_to_now(token.expires_at) } = _('In %{time_to_now}') % { time_to_now: distance_of_time_in_words_to_now(token.expires_at) }
- else - else
%span.token-never-expires-label= _('Never') %span.token-never-expires-label= _('Never')
%td= token.scopes.present? ? token.scopes.join(', ') : html_escape_once(_('<no scopes selected>')).html_safe %td= token.scopes.present? ? token.scopes.join(', ') : _('no scopes selected')
%td= link_to _('Revoke'), revoke_route_helper.call(token), method: :put, class: 'btn btn-danger float-right qa-revoke-button', data: { confirm: _('Are you sure you want to revoke this %{type}? This action cannot be undone.') % { type: type } } %td= link_to _('Revoke'), revoke_route_helper.call(token), method: :put, class: 'btn btn-danger float-right qa-revoke-button', data: { confirm: _('Are you sure you want to revoke this %{type}? This action cannot be undone.') % { type: type } }
- else - else
.settings-message.text-center .settings-message.text-center
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
In #{distance_of_time_in_words_to_now(token.expires_at)} In #{distance_of_time_in_words_to_now(token.expires_at)}
- else - else
%span.token-never-expires-label= _('Never') %span.token-never-expires-label= _('Never')
%td= token.scopes.present? ? token.scopes.join(", ") : html_escape_once(_('<no scopes selected>')).html_safe %td= token.scopes.present? ? token.scopes.join(', ') : _('no scopes selected')
%td= link_to s_('DeployTokens|Revoke'), "#", class: "btn btn-danger float-right", data: { toggle: "modal", target: "#revoke-modal-#{token.id}"} %td= link_to s_('DeployTokens|Revoke'), "#", class: "btn btn-danger float-right", data: { toggle: "modal", target: "#revoke-modal-#{token.id}"}
= render 'shared/deploy_tokens/revoke_modal', token: token, group_or_project: group_or_project = render 'shared/deploy_tokens/revoke_modal', token: token, group_or_project: group_or_project
- else - else
......
---
title: Remove brackets in no scopes selected message in access and deploy tokens lists
merge_request: 47628
author:
type: changed
...@@ -896,9 +896,6 @@ msgstr "" ...@@ -896,9 +896,6 @@ msgstr ""
msgid "< 1 hour" msgid "< 1 hour"
msgstr "" msgstr ""
msgid "<no scopes selected>"
msgstr ""
msgid "'%{data}' at %{location} does not match format: %{format}" msgid "'%{data}' at %{location} does not match format: %{format}"
msgstr "" msgstr ""
...@@ -32767,6 +32764,9 @@ msgstr "" ...@@ -32767,6 +32764,9 @@ msgstr ""
msgid "no one can merge" msgid "no one can merge"
msgstr "" msgstr ""
msgid "no scopes selected"
msgstr ""
msgid "none" msgid "none"
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