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 63b1e92a60f37ad2e251e1f0a67f85a3c0c84c79..c2c514ca009cbb50c034c1ecaddcd88584190d0d 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 88441ae9d4da5f2713df035cbb7914ad75839f0c..8a0c1c28a82294b38c603f4692bdccf7f626fa5b 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 6dabd797f8028d2a0af53ff8e686a9fd489da0ed..95c784ff68ace980e99b7ea580936961906298c3 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 99397e04362a75c3392240f5edd4304d9362bd74..c9b3159170012285247e60bad2994e9ddb540fbd 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 865580f742e77697c9e460b683e3c68dbdddaf16..82dd7b3e10b3e39d6ab1256c85f46a5c26f6e452 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 09979f74e45e1696e8450dc2082d31edf5e784c3..45ef27b113665687a3fc30a6daed6aab7678b4c8 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 %>