2015-08-06 13:08:22 +00:00
|
|
|
- reporter = abuse_report.reporter
|
|
|
|
- user = abuse_report.user
|
2016-08-08 13:04:18 +00:00
|
|
|
%tr
|
2020-10-12 00:08:43 +00:00
|
|
|
%th.d-block.d-sm-none
|
2020-09-08 15:08:41 +00:00
|
|
|
%strong= _('User')
|
2016-08-08 13:04:18 +00:00
|
|
|
%td
|
|
|
|
- if user
|
|
|
|
= link_to user.name, user
|
|
|
|
.light.small
|
2020-09-08 15:08:41 +00:00
|
|
|
= _('Joined %{time_ago}').html_safe % { time_ago: time_ago_with_tooltip(user.created_at) }
|
2016-08-08 13:04:18 +00:00
|
|
|
- else
|
2020-09-08 15:08:41 +00:00
|
|
|
= _('(removed)')
|
2016-08-08 13:04:18 +00:00
|
|
|
%td
|
2020-10-12 00:08:43 +00:00
|
|
|
%strong.subheading.d-block.d-sm-none
|
2021-01-18 12:10:41 +00:00
|
|
|
= _('Reported by %{reporter}').html_safe % { reporter: reporter ? link_to(reporter.name, reporter) : _('(removed)') }
|
2021-01-25 15:09:00 +00:00
|
|
|
.light.gl-display-none.gl-sm-display-block
|
2021-01-18 12:10:41 +00:00
|
|
|
= link_to(reporter.name, reporter)
|
2016-08-08 13:04:18 +00:00
|
|
|
.light.small
|
|
|
|
= time_ago_with_tooltip(abuse_report.created_at)
|
|
|
|
%td
|
2020-10-12 00:08:43 +00:00
|
|
|
%strong.subheading.d-block.d-sm-none
|
|
|
|
= _('Message')
|
2016-08-08 13:04:18 +00:00
|
|
|
.message
|
2016-10-06 22:01:42 +00:00
|
|
|
= markdown_field(abuse_report, :message)
|
2016-08-08 13:04:18 +00:00
|
|
|
%td
|
|
|
|
- if user
|
2020-09-08 15:08:41 +00:00
|
|
|
= link_to _('Remove user & report'), admin_abuse_report_path(abuse_report, remove_user: true),
|
2020-10-09 12:09:07 +00:00
|
|
|
data: { confirm: _("USER %{user} WILL BE REMOVED! Are you sure?") % { user: user.name } }, remote: true, method: :delete, class: "gl-button btn btn-sm btn-block btn-danger js-remove-tr"
|
2016-08-08 13:04:18 +00:00
|
|
|
- if user && !user.blocked?
|
2020-10-13 15:08:53 +00:00
|
|
|
= 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-sm btn-block"
|
2016-08-08 13:04:18 +00:00
|
|
|
- else
|
|
|
|
.btn.btn-sm.disabled.btn-block
|
2020-09-08 15:08:41 +00:00
|
|
|
= _('Already blocked')
|
2020-10-13 15:08:53 +00:00
|
|
|
= link_to _('Remove report'), [:admin, abuse_report], remote: true, method: :delete, class: "gl-button btn btn-sm btn-block btn-close js-remove-tr"
|