Skip to content
Snippets Groups Projects
Commit 572bf851 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

organizations

parent 5fc76747
No related branches found
No related tags found
No related merge requests found
......@@ -11,4 +11,30 @@
<%= block_component_static block, :url, template: element, depth: 5 %>
logo: "<%= element.logo_component.blob&.id %>"
<% end %>
<% end %>
elements:
<% block.template.elements.each do |element| %>
- title: >-
<%= prepare_text_for_static element.name %>
<% if element.organization %>
kind: "osuny"
path: "<%= element.organization.slug %>"
url: "<%= element.organization.current_permalink_in_website(@website)&.path %>"
logo:
<% if element.organization.logo.attached? %>
light_background:
id: "<%= element.organization.logo.blob.id %>"
<% end %>
<% if element.organization.logo_on_dark_background.attached? %>
dark_background:
id: "<%= element.organization.logo_on_dark_background.blob.id %>"
<% end %>
<% else %>
kind: "external"
url: "<%= element.url %>"
<% if element.logo_component.blob %>
logo:
id: "<%= element.logo_component.blob&.id %>"
<% end %>
<% end %>
<% end %>
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