Commit 45505fbc authored by David O'Regan's avatar David O'Regan

Merge branch 'Externalize-strings-in-spam_logs/_spam_log.html.haml' into 'master'

Externalize strings in spam_logs/_spam_log.html.haml

See merge request gitlab-org/gitlab!58169
parents 3eac892c 39585332
......@@ -6,9 +6,9 @@
- if user
= link_to user.name, [:admin, user]
.light.small
Joined #{time_ago_with_tooltip(user.created_at)}
= _('Joined %{user_created_time}').html_safe % { user_created_time: time_ago_with_tooltip(user.created_at) }
- else
(removed)
= _('(removed)')
%td
= spam_log.source_ip
%td
......@@ -23,17 +23,17 @@
= truncate(spam_log.description, length: 100)
%td
- if user
= link_to 'Remove user', admin_spam_log_path(spam_log, remove_user: true),
data: { confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?" }, method: :delete, class: "gl-button btn btn-sm btn-danger"
= link_to _('Remove user'), admin_spam_log_path(spam_log, remove_user: true),
data: { confirm: _("USER %{user_name} WILL BE REMOVED! Are you sure?") % { user_name: user.name } }, method: :delete, class: "gl-button btn btn-sm btn-danger"
%td
- if spam_log.submitted_as_ham?
.gl-button.btn.btn-default.btn-sm.disabled.gl-mb-3
Submitted as ham
= _("Submitted as ham")
- else
= link_to 'Submit as ham', mark_as_ham_admin_spam_log_path(spam_log), method: :post, class: 'gl-button btn btn-default btn-sm gl-mb-3'
= link_to _('Submit as ham'), mark_as_ham_admin_spam_log_path(spam_log), method: :post, class: 'gl-button btn btn-default btn-sm gl-mb-3'
- if user && !user.blocked?
= link_to 'Block user', block_admin_user_path(user), data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'}, method: :put, class: "gl-button btn btn-default btn-sm gl-mb-3"
= link_to _('Block user'), block_admin_user_path(user), data: {confirm: _('USER WILL BE BLOCKED! Are you sure?')}, method: :put, class: "gl-button btn btn-default btn-sm gl-mb-3"
- else
.gl-button.btn.btn-default.btn-sm.disabled.gl-mb-3
Already blocked
= link_to 'Remove log', [:admin, spam_log], remote: true, method: :delete, class: "gl-button btn btn-default btn-sm btn-close js-remove-tr"
= link_to _('Remove log'), [:admin, spam_log], remote: true, method: :delete, class: "gl-button btn btn-default btn-sm btn-close js-remove-tr"
---
title: Externalise strings in spam_logs/_spam_log.html.haml
merge_request: 58169
author: nuwe1
type: other
......@@ -17981,6 +17981,9 @@ msgstr ""
msgid "Joined %{time_ago}"
msgstr ""
msgid "Joined %{user_created_time}"
msgstr ""
msgid "Jul"
msgstr ""
......@@ -26002,6 +26005,9 @@ msgstr ""
msgid "Remove list"
msgstr ""
msgid "Remove log"
msgstr ""
msgid "Remove member"
msgstr ""
......@@ -29725,6 +29731,9 @@ msgstr ""
msgid "Submit a review"
msgstr ""
msgid "Submit as ham"
msgstr ""
msgid "Submit as spam"
msgstr ""
......@@ -29749,6 +29758,9 @@ msgstr ""
msgid "Submit your changes"
msgstr ""
msgid "Submitted as ham"
msgstr ""
msgid "Submitted the current review."
msgstr ""
......@@ -32956,6 +32968,9 @@ msgstr ""
msgid "URL or request ID"
msgstr ""
msgid "USER %{user_name} WILL BE REMOVED! Are you sure?"
msgstr ""
msgid "USER %{user} WILL BE REMOVED! Are you sure?"
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