Retrospring/app/views/moderation/reports/index.html.haml

18 lines
603 B
Plaintext

#reports
- if @reports.empty?
= render "shared/empty", icon: "fa-regular fa-smile-beam", translation_key: ".moderation.reports"
- @reports.each do |r|
= render "moderation/moderationbox", report: r
- if @more_data_available
.d-flex.justify-content-center.justify-content-sm-start#paginator
= button_to t("voc.load"), moderation_reports_path(type: params[:type]),
class: "btn btn-light",
method: :get,
params: { last_id: @reports_last_id },
data: { controller: :hotkey, hotkey: "." },
form: { data: { turbo_stream: true } }
- parent_layout "moderation"