2022-07-29 20:12:22 -07:00
|
|
|
.card.moderationbox{ data: { id: report.id } }
|
|
|
|
.card-header
|
2022-10-10 14:14:45 -07:00
|
|
|
%img.avatar-sm{ src: report.user.profile_picture.url(:small), loading: :lazy }
|
2022-07-29 20:12:22 -07:00
|
|
|
= t(".reported_html",
|
|
|
|
user: user_screen_name(report.user),
|
|
|
|
content: report.type.sub("Reports::", ""),
|
|
|
|
time: time_tooltip(report))
|
|
|
|
.card-body
|
|
|
|
%p
|
|
|
|
- if report.type == "Reports::User"
|
|
|
|
= user_screen_name report.target
|
|
|
|
- else
|
|
|
|
= report.target.content
|
|
|
|
%p
|
|
|
|
%b= t(".reason.heading")
|
|
|
|
%br
|
|
|
|
- if report.reason.nil? || report.reason.strip.blank?
|
|
|
|
= t(".reason.none")
|
2020-05-10 02:57:18 -07:00
|
|
|
- else
|
2022-07-29 20:12:22 -07:00
|
|
|
- report.reason.lines.each do |reason|
|
|
|
|
- next if reason.strip.blank?
|
|
|
|
= reason.strip
|
|
|
|
.row
|
2023-01-04 03:43:19 -08:00
|
|
|
.col-md-8.col-sm-8.col-xs-8.text-start
|
2022-07-29 20:12:22 -07:00
|
|
|
%a.btn.btn-primary{ href: content_url(report) }
|
|
|
|
= t(".view", content: report.type.sub("Reports::", ""))
|
|
|
|
- if report.target.respond_to?(:user) && report.target.user
|
|
|
|
%a.btn.btn-primary{ href: user_path(report.target.user) }
|
|
|
|
= t(".view", content: t("activerecord.models.user.one"))
|
2023-01-04 03:43:19 -08:00
|
|
|
.col-md-4.col-sm-4.col-xs-4.text-end
|
2022-07-29 20:12:22 -07:00
|
|
|
%button.btn.btn-default.btn-sm{ type: :button, name: "mod-delete-report", data: { id: report.id } }
|
|
|
|
%i.fa.fa-trash-o
|