Use moderation layout on specific views

This commit is contained in:
Andreas Nedbal 2022-11-20 18:04:25 +01:00 committed by Andreas Nedbal
parent 95b501301d
commit 695ce57762
2 changed files with 11 additions and 9 deletions

View File

@ -1,6 +1,3 @@
- provide(:title, generate_title(t(".title")))
.container-lg.container--main
.card .card
.card-body .card-body
#entries #entries
@ -8,3 +5,6 @@
.text-center= t(".empty") .text-center= t(".empty")
- @anonymous_blocks.each do |block| - @anonymous_blocks.each do |block|
= render "shared/anonymous_block", block: = render "shared/anonymous_block", block:
- provide(:title, generate_title(t(".title")))
- parent_layout "moderation"

View File

@ -6,3 +6,5 @@
.d-flex.justify-content-center.justify-content-sm-start#paginator .d-flex.justify-content-center.justify-content-sm-start#paginator
= button_to moderation_reports_path(last_id: @reports_last_id, type: params[:type]), class: "btn btn-light" do = button_to moderation_reports_path(last_id: @reports_last_id, type: params[:type]), class: "btn btn-light" do
= t("voc.load") = t("voc.load")
- parent_layout "moderation"