Skip to content
Snippets Groups Projects
Commit f22a0293 authored by alexisben's avatar alexisben
Browse files

Static for block CTA

parent dc8ce76d
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,12 @@
<% end %>
<hr>
<%= @block.template.text.html_safe %>
<a href="<%= @block.template.url %>" class="btn btn-secondary" target="_blank" rel="noopener">
<a href="<%= @block.template.url %>" class="btn btn-primary" target="_blank" rel="noopener">
<%= @block.template.button %>
</a>
<a href="<%= @block.template.url_secondary %>" class="btn btn-secondary" target="_blank" rel="noopener">
<%= @block.template.button_secondary %>
</a>
</div>
</div>
</div>
text: >-
<%= prepare_html_for_static block.template.text, about.university %>
<% if block.template.image %>
image:
file: "<%= block.template.image.blob.id %>"
alt: <%= prepare_text_for_static block.template.image.alt %>
<% end %>
button:
text: >-
<%= prepare_text_for_static block.template.button %>
url: >-
<%= prepare_text_for_static block.template.url %>
button_secondary:
text: >-
<%= prepare_text_for_static block.template.button_secondary %>
url: >-
<%= prepare_text_for_static block.template.url_secondary %>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment