Commit 44acdf77 authored by Takuya Noguchi's avatar Takuya Noguchi Committed by Bob Van Landuyt

Internationalize Admin Abuse Report

Co-authored-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 29ac2713
...@@ -2,33 +2,30 @@ ...@@ -2,33 +2,30 @@
- user = abuse_report.user - user = abuse_report.user
%tr %tr
%th.d-block.d-sm-none.d-md-none %th.d-block.d-sm-none.d-md-none
%strong User %strong= _('User')
%td %td
- if user - if user
= link_to user.name, user = link_to user.name, user
.light.small .light.small
Joined #{time_ago_with_tooltip(user.created_at)} = _('Joined %{time_ago}').html_safe % { time_ago: time_ago_with_tooltip(user.created_at) }
- else - else
(removed) = _('(removed)')
%td %td
%strong.subheading.d-block.d-sm-none.d-md-none Reported by %strong.subheading.d-block.d-sm-none.d-md-none
- if reporter = _('Reported by %{reporter}') % { reporter: reporter ? link_to(reporter.name, reporter) : _('(removed)') }
= link_to reporter.name, reporter
- else
(removed)
.light.small .light.small
= time_ago_with_tooltip(abuse_report.created_at) = time_ago_with_tooltip(abuse_report.created_at)
%td %td
%strong.subheading.d-block.d-sm-none.d-md-none Message %strong.subheading.d-block.d-sm-none.d-md-none= _('Message')
.message .message
= markdown_field(abuse_report, :message) = markdown_field(abuse_report, :message)
%td %td
- if user - if user
= link_to 'Remove user & report', admin_abuse_report_path(abuse_report, remove_user: true), = link_to _('Remove user & report'), admin_abuse_report_path(abuse_report, remove_user: true),
data: { confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?" }, remote: true, method: :delete, class: "btn btn-sm btn-block btn-remove js-remove-tr" data: { confirm: _("USER %{user} WILL BE REMOVED! Are you sure?") % { user: user.name } }, remote: true, method: :delete, class: "btn btn-sm btn-block btn-remove js-remove-tr"
- if user && !user.blocked? - 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: "btn btn-sm btn-block" = link_to _('Block user'), block_admin_user_path(user), data: {confirm: _('USER WILL BE BLOCKED! Are you sure?')}, method: :put, class: "btn btn-sm btn-block"
- else - else
.btn.btn-sm.disabled.btn-block .btn.btn-sm.disabled.btn-block
Already blocked = _('Already blocked')
= link_to 'Remove report', [:admin, abuse_report], remote: true, method: :delete, class: "btn btn-sm btn-block btn-close js-remove-tr" = link_to _('Remove report'), [:admin, abuse_report], remote: true, method: :delete, class: "btn btn-sm btn-block btn-close js-remove-tr"
---
title: Internationalize Admin Abuse Report
merge_request: 41355
author: suzu-1990
type: other
...@@ -2510,6 +2510,9 @@ msgstr "" ...@@ -2510,6 +2510,9 @@ msgstr ""
msgid "Almost there" msgid "Almost there"
msgstr "" msgstr ""
msgid "Already blocked"
msgstr ""
msgid "Also called \"Issuer\" or \"Relying party trust identifier\"" msgid "Also called \"Issuer\" or \"Relying party trust identifier\""
msgstr "" msgstr ""
...@@ -3959,6 +3962,9 @@ msgstr "" ...@@ -3959,6 +3962,9 @@ msgstr ""
msgid "Blame" msgid "Blame"
msgstr "" msgstr ""
msgid "Block user"
msgstr ""
msgid "Blocked" msgid "Blocked"
msgstr "" msgstr ""
...@@ -14079,6 +14085,9 @@ msgstr "" ...@@ -14079,6 +14085,9 @@ msgstr ""
msgid "Join Zoom meeting" msgid "Join Zoom meeting"
msgstr "" msgstr ""
msgid "Joined %{time_ago}"
msgstr ""
msgid "Jul" msgid "Jul"
msgstr "" msgstr ""
...@@ -15478,6 +15487,9 @@ msgstr "" ...@@ -15478,6 +15487,9 @@ msgstr ""
msgid "Merging immediately isn't recommended as it may negatively impact the existing merge train. Read the %{docsLinkStart}documentation%{docsLinkEnd} for more information." msgid "Merging immediately isn't recommended as it may negatively impact the existing merge train. Read the %{docsLinkStart}documentation%{docsLinkEnd} for more information."
msgstr "" msgstr ""
msgid "Message"
msgstr ""
msgid "Messages" msgid "Messages"
msgstr "" msgstr ""
...@@ -20746,6 +20758,9 @@ msgstr "" ...@@ -20746,6 +20758,9 @@ msgstr ""
msgid "Remove priority" msgid "Remove priority"
msgstr "" msgstr ""
msgid "Remove report"
msgstr ""
msgid "Remove secondary node" msgid "Remove secondary node"
msgstr "" msgstr ""
...@@ -20758,6 +20773,9 @@ msgstr "" ...@@ -20758,6 +20773,9 @@ msgstr ""
msgid "Remove time estimate" msgid "Remove time estimate"
msgstr "" msgstr ""
msgid "Remove user & report"
msgstr ""
msgid "Removed" msgid "Removed"
msgstr "" msgstr ""
...@@ -20926,6 +20944,9 @@ msgstr "" ...@@ -20926,6 +20944,9 @@ msgstr ""
msgid "Reported %{timeAgo} by %{reportedBy}" msgid "Reported %{timeAgo} by %{reportedBy}"
msgstr "" msgstr ""
msgid "Reported by %{reporter}"
msgstr ""
msgid "Reporting" msgid "Reporting"
msgstr "" msgstr ""
...@@ -26525,6 +26546,12 @@ msgstr "" ...@@ -26525,6 +26546,12 @@ msgstr ""
msgid "URL or request ID" msgid "URL or request ID"
msgstr "" msgstr ""
msgid "USER %{user} WILL BE REMOVED! Are you sure?"
msgstr ""
msgid "USER WILL BE BLOCKED! Are you sure?"
msgstr ""
msgid "UTC" msgid "UTC"
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