From 1eaffd1dfc451f41df839d7af22c8db26dfa553a Mon Sep 17 00:00:00 2001
From: alexisben <alexiben7@gmail.com>
Date: Tue, 21 Jun 2022 10:46:57 +0200
Subject: [PATCH] Fix block timeline static

---
 .../blocks/templates/call_to_action/_static.html.erb           | 2 +-
 .../blocks/templates/testimonials/_static.html.erb             | 3 +--
 .../communication/blocks/templates/timeline/_static.html.erb   | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb b/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb
index 7fedc45db..a1a67ce09 100644
--- a/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb
+++ b/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb
@@ -4,7 +4,7 @@
 <%= block_component_static :credit %>
       buttons:
 <% block.template.elements.each do |element| %>
-<%= block_component_static :title, template: element, depth: 4, list: true %>
+<%= block_component_static :title, template: element, list: true, depth: 4 %>
 <%= block_component_static :url, template: element, depth: 5 %>
 <%= block_component_static :target_blank, template: element, depth: 5 %>
 
diff --git a/app/views/admin/communication/blocks/templates/testimonials/_static.html.erb b/app/views/admin/communication/blocks/templates/testimonials/_static.html.erb
index 131f31557..b46aa56c7 100644
--- a/app/views/admin/communication/blocks/templates/testimonials/_static.html.erb
+++ b/app/views/admin/communication/blocks/templates/testimonials/_static.html.erb
@@ -1,10 +1,9 @@
       testimonials:
 <% block.template.elements.each do |element| %>
-<%= block_component_static :text, template: element, list: true %>
+<%= block_component_static :text, template: element, depth: 4, list: true %>
 <%= block_component_static :author, template: element, depth: 4 %>
 <%= block_component_static :job, template: element, depth: 4 %>
 <% if element.photo %>
 <%= block_component_static :photo, template: element, depth: 4 %>
 <% end %>
-
 <% end %>
diff --git a/app/views/admin/communication/blocks/templates/timeline/_static.html.erb b/app/views/admin/communication/blocks/templates/timeline/_static.html.erb
index 6cc2acd2a..1c59a843e 100644
--- a/app/views/admin/communication/blocks/templates/timeline/_static.html.erb
+++ b/app/views/admin/communication/blocks/templates/timeline/_static.html.erb
@@ -1,4 +1,4 @@
 <% block.template.elements.each do |element| %>
-<%= block_component_static :title, template: element, depth: 4 %>
+<%= block_component_static :title, template: element, depth: 3, list: true %>
 <%= block_component_static :text, template: element, depth: 4 %>
 <% end %>
-- 
GitLab