diff --git a/app/views/settings/reports/index.html.erb b/app/views/settings/reports/index.html.erb index 0b5b7d1f0..bae46293b 100644 --- a/app/views/settings/reports/index.html.erb +++ b/app/views/settings/reports/index.html.erb @@ -11,7 +11,7 @@ <% @reports.each do |report| %> - coming soon... + <%= link_to report.object.entity.name, report.object.entity if report.object&.entity %> <%= report.reporter_address %> <%= report.created_at %> <%= link_to safe_join([icon("search", t("general.view")), t("general.view")], " "), settings_report_path(report), {class: "float-end btn btn-primary"} %> diff --git a/app/views/settings/reports/show.html.erb b/app/views/settings/reports/show.html.erb index 2edcf669b..8cd802036 100644 --- a/app/views/settings/reports/show.html.erb +++ b/app/views/settings/reports/show.html.erb @@ -18,6 +18,22 @@ <% end %> +

<%= Federails::Moderation::Report.human_attribute_name(:object) %>

+ + <% Array(@report.object).each do |object| %> + + <% if @report.object&.entity %> + + + <% end %> + + <% end %> +
+ <%= @report.object.entity.model_name.human %> + + <%= link_to @report.object.entity.name, @report.object.entity %> +
+
<%= link_to t(".resolve"), settings_report_path(@report, resolve: true), method: :patch, class: "btn btn-primary" %> <%= link_to t(".ignore"), settings_report_path(@report, ignore: true), method: :patch, class: "btn btn-danger" %>