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,10 +1,10 @@
- provide(:title, generate_title(t(".title"))) .card
.card-body
#entries
- if @anonymous_blocks.empty?
.text-center= t(".empty")
- @anonymous_blocks.each do |block|
= render "shared/anonymous_block", block:
.container-lg.container--main - provide(:title, generate_title(t(".title")))
.card - parent_layout "moderation"
.card-body
#entries
- if @anonymous_blocks.empty?
.text-center= t(".empty")
- @anonymous_blocks.each do |block|
= render "shared/anonymous_block", block:

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"