From 544b9eae9f10a262d2ec48aee70a9eb6bd1fff99 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 29 Nov 2022 10:57:46 +0100 Subject: [PATCH] block pages --- Gemfile.lock | 1 + .../communication/blocks/templates/pages/_edit.html.erb | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 4c2c62d8b..043362ea3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -500,6 +500,7 @@ PLATFORMS arm64-darwin-21 arm64-darwin-22 x86_64-darwin-21 + x86_64-darwin-22 x86_64-linux DEPENDENCIES diff --git a/app/views/admin/communication/blocks/templates/pages/_edit.html.erb b/app/views/admin/communication/blocks/templates/pages/_edit.html.erb index fa01d890e..08d6820ac 100644 --- a/app/views/admin/communication/blocks/templates/pages/_edit.html.erb +++ b/app/views/admin/communication/blocks/templates/pages/_edit.html.erb @@ -42,7 +42,9 @@ <div class="col-lg-6"> <h2 class="h3"><%= t '.display.title' %></h2> <%= block_component_edit :show_main_description %> - <%= block_component_edit :show_description %> - <%= block_component_edit :show_image %> + <div v-show="data.layout != 'list'"> + <%= block_component_edit :show_description %> + <%= block_component_edit :show_image %> + </div> </div> </div> -- GitLab