diff --git a/app/views/admin/communication/blocks/components/rich_text/_static.html.erb b/app/views/admin/communication/blocks/components/rich_text/_static.html.erb index 1d02c906d032e98e4fd0106a6577d39a442e7459..c4afc99498f820a9243b26e6091c3d1f8087324d 100644 --- a/app/views/admin/communication/blocks/components/rich_text/_static.html.erb +++ b/app/views/admin/communication/blocks/components/rich_text/_static.html.erb @@ -1,2 +1,7 @@ +<% if list %> +<%= indentation %>- <%= property %>: >- +<%= indentation %> <%= prepare_html_for_static value, @university, depth + 2 %> +<% else %> <%= indentation %><%= property %>: >- -<%= indentation %> <%= prepare_html_for_static value, @university %> \ No newline at end of file +<%= indentation %> <%= prepare_html_for_static value, @university %> +<% end %> diff --git a/app/views/admin/communication/blocks/components/text/_static.html.erb b/app/views/admin/communication/blocks/components/text/_static.html.erb index a05f077613ee7ddef681c1a3db159108efce7801..f6f87c8bd67087aa8ec5df5952ae1b4b9457a2bc 100644 --- a/app/views/admin/communication/blocks/components/text/_static.html.erb +++ b/app/views/admin/communication/blocks/components/text/_static.html.erb @@ -1,2 +1,7 @@ +<% if list %> +<%= indentation %>- <%= property %>: >- +<%= indentation %> <%= prepare_text_for_static value, depth + 2 %> +<% else %> <%= indentation %><%= property %>: >- -<%= indentation %> <%= prepare_text_for_static value, depth + 1 %> \ No newline at end of file +<%= indentation %> <%= prepare_text_for_static value, depth + 1 %> +<% end %> 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 b46aa56c7da55e85f98407442bbf1c072a14b08e..f267cde51931ff60e239ade8f314c3b2f37dda25 100644 --- a/app/views/admin/communication/blocks/templates/testimonials/_static.html.erb +++ b/app/views/admin/communication/blocks/templates/testimonials/_static.html.erb @@ -1,9 +1,7 @@ testimonials: <% block.template.elements.each do |element| %> <%= 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 %> +<%= block_component_static :author, template: element, depth: 5 %> +<%= block_component_static :job, template: element, depth: 5 %> +<%= block_component_static :photo, template: element, depth: 5 if element.photo %> <% 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 1c59a843eef85344bec6a072896abe84efde168f..2c8edafc78edac4d2d88e3ff0f5d10f8ac2dc1a2 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,5 @@ + events: <% block.template.elements.each do |element| %> -<%= block_component_static :title, template: element, depth: 3, list: true %> -<%= block_component_static :text, template: element, depth: 4 %> +<%= block_component_static :title, template: element, depth: 4, list: true %> +<%= block_component_static :text, template: element, depth: 5 %> <% end %>