Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/commit')
-rw-r--r--app/views/projects/commit/_multiple_signatures_signature_badge.html.haml7
-rw-r--r--app/views/projects/commit/_other_user_signature_badge.html.haml7
-rw-r--r--app/views/projects/commit/_same_user_different_email_signature_badge.html.haml7
-rw-r--r--app/views/projects/commit/_signature_badge.html.haml24
-rw-r--r--app/views/projects/commit/_unverified_signature_badge.html.haml7
-rw-r--r--app/views/projects/commit/_verified_signature_badge.html.haml7
6 files changed, 25 insertions, 34 deletions
diff --git a/app/views/projects/commit/_multiple_signatures_signature_badge.html.haml b/app/views/projects/commit/_multiple_signatures_signature_badge.html.haml
index 74515438af2..2568a69cc2c 100644
--- a/app/views/projects/commit/_multiple_signatures_signature_badge.html.haml
+++ b/app/views/projects/commit/_multiple_signatures_signature_badge.html.haml
@@ -1,6 +1,5 @@
-- title = capture do
- = html_escape(_('This commit was signed with %{strong_open}multiple%{strong_close} signatures.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
-
-- locals = { signature: signature, title: title, label: _('Unverified'), css_class: 'invalid', icon: 'status_notfound_borderless' }
+- title = _('Multiple signatures')
+- description = _('This commit was signed with multiple signatures.')
+- locals = { signature: signature, title: title, description: description, label: _('Unverified'), css_class: 'invalid' }
= render partial: 'projects/commit/signature_badge', locals: locals
diff --git a/app/views/projects/commit/_other_user_signature_badge.html.haml b/app/views/projects/commit/_other_user_signature_badge.html.haml
index bb843bee7c9..ffc4b25dc21 100644
--- a/app/views/projects/commit/_other_user_signature_badge.html.haml
+++ b/app/views/projects/commit/_other_user_signature_badge.html.haml
@@ -1,6 +1,5 @@
-- title = capture do
- = _("This commit was signed with a different user's verified signature.")
-
-- locals = { signature: signature, title: title, label: _('Unverified'), css_class: 'invalid', icon: 'status_notfound_borderless', show_user: true }
+- title = _("Different user's signature")
+- description = _("This commit was signed with a different user's verified signature.")
+- locals = { signature: signature, title: title, description: description, label: _('Unverified'), css_class: 'invalid' }
= render partial: 'projects/commit/signature_badge', locals: locals
diff --git a/app/views/projects/commit/_same_user_different_email_signature_badge.html.haml b/app/views/projects/commit/_same_user_different_email_signature_badge.html.haml
index 629d3cfaf74..61fdf6fc87a 100644
--- a/app/views/projects/commit/_same_user_different_email_signature_badge.html.haml
+++ b/app/views/projects/commit/_same_user_different_email_signature_badge.html.haml
@@ -1,6 +1,5 @@
-- title = capture do
- = html_escape(_('This commit was signed with a verified signature, but the committer email is not associated with the GPG Key.'))
-
-- locals = { signature: signature, title: title, label: _('Unverified'), css_class: ['invalid'], icon: 'status_notfound_borderless', show_user: true }
+- title = _('GPG key mismatch')
+- description = _('This commit was signed with a verified signature, but the committer email is not associated with the GPG Key.')
+- locals = { signature: signature, title: title, description: description, label: _('Unverified'), css_class: ['invalid'] }
= render partial: 'projects/commit/signature_badge', locals: locals
diff --git a/app/views/projects/commit/_signature_badge.html.haml b/app/views/projects/commit/_signature_badge.html.haml
index ad6b524c01b..41ba581b9d9 100644
--- a/app/views/projects/commit/_signature_badge.html.haml
+++ b/app/views/projects/commit/_signature_badge.html.haml
@@ -1,39 +1,35 @@
- signature = local_assigns.fetch(:signature)
- title = local_assigns.fetch(:title)
+- description = local_assigns.fetch(:description, nil)
- label = local_assigns.fetch(:label)
- css_class = local_assigns.fetch(:css_class)
-- icon = local_assigns.fetch(:icon)
-- show_user = local_assigns.fetch(:show_user, false)
- css_classes = commit_signature_badge_classes(css_class)
- title = capture do
.gpg-popover-status
- .gpg-popover-icon{ class: css_class }
- = sprite_icon(icon)
%div
- = title
+ %strong
+ = title
-- content = capture do
- - if show_user
- .clearfix
- - uri_signature_badge_user = "projects/commit/#{'x509/' if signature.x509?}signature_badge_user"
- = render partial: "#{uri_signature_badge_user}", locals: { signature: signature }
+ %p.gl-my-3
+ = description
+- content = capture do
- if signature.x509?
= render partial: "projects/commit/x509/certificate_details", locals: { signature: signature }
= link_to(_('Learn more about X.509 signed commits'), help_page_path('user/project/repository/x509_signed_commits/index.md'), class: 'gl-link gl-display-block')
- - elsif ::Feature.enabled?(:ssh_commit_signatures, signature.project) && signature.ssh?
+ - elsif signature.ssh?
= _('SSH key fingerprint:')
- %span.gl-font-monospace= signature.key&.fingerprint_sha256 || _('Unknown')
+ %span.gl-font-monospace= signature.key_fingerprint_sha256 || _('Unknown')
- = link_to(_('Learn about signing commits with SSH keys.'), help_page_path('user/project/repository/ssh_signed_commits/index.md'), class: 'gl-link gl-display-block')
+ = link_to(_('Learn about signing commits with SSH keys.'), help_page_path('user/project/repository/ssh_signed_commits/index.md'), class: 'gl-link gl-display-block gl-mt-3')
- else
= _('GPG Key ID:')
%span.gl-font-monospace= signature.gpg_key_primary_keyid
- = link_to(_('Learn more about signing commits'), help_page_path('user/project/repository/gpg_signed_commits/index.md'), class: 'gl-link gl-display-block')
+ = link_to(_('Learn about signing commits'), help_page_path('user/project/repository/gpg_signed_commits/index.md'), class: 'gl-link gl-display-block gl-mt-3')
%a{ role: 'button', tabindex: 0, class: css_classes, data: { toggle: 'popover', html: 'true', placement: 'top', title: title, content: content } }
= label
diff --git a/app/views/projects/commit/_unverified_signature_badge.html.haml b/app/views/projects/commit/_unverified_signature_badge.html.haml
index 0ce8e06382b..0eae8d5564d 100644
--- a/app/views/projects/commit/_unverified_signature_badge.html.haml
+++ b/app/views/projects/commit/_unverified_signature_badge.html.haml
@@ -1,6 +1,5 @@
-- title = capture do
- = html_escape(_('This commit was signed with an %{strong_open}unverified%{strong_close} signature.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
-
-- locals = { signature: signature, title: title, label: _('Unverified'), css_class: 'invalid', icon: 'status_notfound_borderless' }
+- title = _('Unverified signature')
+- description = _('This commit was signed with an unverified signature.')
+- locals = { signature: signature, title: title, description: description, label: _('Unverified'), css_class: 'invalid' }
= render partial: 'projects/commit/signature_badge', locals: locals
diff --git a/app/views/projects/commit/_verified_signature_badge.html.haml b/app/views/projects/commit/_verified_signature_badge.html.haml
index 357ad467539..417d816c711 100644
--- a/app/views/projects/commit/_verified_signature_badge.html.haml
+++ b/app/views/projects/commit/_verified_signature_badge.html.haml
@@ -1,6 +1,5 @@
-- title = capture do
- = html_escape(_('This commit was signed with a %{strong_open}verified%{strong_close} signature and the committer email is verified to belong to the same user.')) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
-
-- locals = { signature: signature, title: title, label: _('Verified'), css_class: 'valid', icon: 'status_success_borderless', show_user: true }
+- title = _('Verified commit')
+- description = _('This commit was signed with a verified signature and the committer email was verified to belong to the same user.')
+- locals = { signature: signature, title: title, description: description, label: _('Verified'), css_class: 'valid' }
= render partial: 'projects/commit/signature_badge', locals: locals