From 9d790fecee6c5e2b8330f10a2ae32daf093c093d Mon Sep 17 00:00:00 2001 From: alexisben <alexiben7@gmail.com> Date: Mon, 16 May 2022 14:22:43 +0200 Subject: [PATCH] Fix static indentation --- .../blocks/templates/call_to_action/_static.html.erb | 12 ++++++------ .../blocks/templates/gallery/_static.html.erb | 6 +++--- .../templates/organization_chart/_static.html.erb | 4 ++-- .../blocks/templates/partners/_static.html.erb | 4 ++-- .../blocks/templates/testimonials/_static.html.erb | 6 +++--- .../blocks/templates/video/_static.html.erb | 2 +- 6 files changed, 17 insertions(+), 17 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 63b1e92a6..c2c514ca0 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 @@ -9,16 +9,16 @@ <% end %> button: text: >- - <%= prepare_text_for_static block.template.button %> + <%= prepare_text_for_static block.template.button, 5 %> url: >- - <%= prepare_text_for_static block.template.url %> + <%= prepare_text_for_static block.template.url, 5 %> button_secondary: text: >- - <%= prepare_text_for_static block.template.button_secondary %> + <%= prepare_text_for_static block.template.button_secondary, 5 %> url: >- - <%= prepare_text_for_static block.template.url_secondary %> + <%= prepare_text_for_static block.template.url_secondary, 5 %> button_tertiary: text: >- - <%= prepare_text_for_static block.template.button_tertiary %> + <%= prepare_text_for_static block.template.button_tertiary, 5 %> url: >- - <%= prepare_text_for_static block.template.url_tertiary %> + <%= prepare_text_for_static block.template.url_tertiary, 5 %> diff --git a/app/views/admin/communication/blocks/templates/gallery/_static.html.erb b/app/views/admin/communication/blocks/templates/gallery/_static.html.erb index 88441ae9d..8a0c1c28a 100644 --- a/app/views/admin/communication/blocks/templates/gallery/_static.html.erb +++ b/app/views/admin/communication/blocks/templates/gallery/_static.html.erb @@ -3,10 +3,10 @@ - id: "<%= image.blob.id %>" file: "<%= image.blob.id %>" alt: > - <%= prepare_text_for_static image.alt %> + <%= prepare_text_for_static image.alt, 6 %> credit: > - <%= prepare_text_for_static image.credit %> + <%= prepare_text_for_static image.credit, 6 %> text: > - <%= prepare_text_for_static image.text %> + <%= prepare_text_for_static image.text, 6 %> <% end %> diff --git a/app/views/admin/communication/blocks/templates/organization_chart/_static.html.erb b/app/views/admin/communication/blocks/templates/organization_chart/_static.html.erb index 6dabd797f..95c784ff6 100644 --- a/app/views/admin/communication/blocks/templates/organization_chart/_static.html.erb +++ b/app/views/admin/communication/blocks/templates/organization_chart/_static.html.erb @@ -2,6 +2,6 @@ block.template.persons_with_role.each do |person_with_role| person = person_with_role.person %> - slug: "<%= person.slug %>" - role: > - <%= prepare_text_for_static person_with_role.role %> + role: >- + <%= prepare_text_for_static person_with_role.role, 5 %> <% end %> diff --git a/app/views/admin/communication/blocks/templates/partners/_static.html.erb b/app/views/admin/communication/blocks/templates/partners/_static.html.erb index 99397e043..c9b315917 100644 --- a/app/views/admin/communication/blocks/templates/partners/_static.html.erb +++ b/app/views/admin/communication/blocks/templates/partners/_static.html.erb @@ -3,9 +3,9 @@ - slug: "<%= partner.organization.slug %>" <% else %> - name: > - <%= prepare_text_for_static partner['name'] %> + <%= prepare_text_for_static partner['name'], 5 %> url: >- - <%= prepare_text_for_static partner['url'] %> + <%= prepare_text_for_static partner['url'], 5 %> logo: "<%= partner.blob&.id %>" <% end %> <% 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 865580f74..82dd7b3e1 100644 --- a/app/views/admin/communication/blocks/templates/testimonials/_static.html.erb +++ b/app/views/admin/communication/blocks/templates/testimonials/_static.html.erb @@ -1,11 +1,11 @@ testimonials: <% block.template.testimonials.each do |testimonial| %> - text: >- - <%= prepare_text_for_static testimonial.text %> + <%= prepare_text_for_static testimonial.text, 6 %> author: >- - <%= prepare_text_for_static testimonial.author %> + <%= prepare_text_for_static testimonial.author, 6 %> job: >- - <%= prepare_text_for_static testimonial.job %> + <%= prepare_text_for_static testimonial.job, 6 %> <% if testimonial.blob %> photo: "<%= testimonial.blob.id %>" <% end %> diff --git a/app/views/admin/communication/blocks/templates/video/_static.html.erb b/app/views/admin/communication/blocks/templates/video/_static.html.erb index 09979f74e..45ef27b11 100644 --- a/app/views/admin/communication/blocks/templates/video/_static.html.erb +++ b/app/views/admin/communication/blocks/templates/video/_static.html.erb @@ -1,4 +1,4 @@ url: >- - <%= prepare_text_for_static block.template.url %> + <%= prepare_text_for_static block.template.url, 4 %> transcription: >- <%= prepare_text_for_static block.template.transcription, 4 %> -- GitLab