noesya/osuny

View on GitHub
app/views/admin/communication/blocks/templates/organizations/_static.html.erb

Summary

Maintainability
Test Coverage
      layout: <%= block.template.layout %>
<%= block_component_static block, :description %>
<%= block_options_static block %>
      organizations:
<% block.template.selected_elements.each do |element| %>
<% if element.organization %>
  <% next unless (organization_l10n = element.organization.localization_for(block.language)) %>
        - slug: "<%= organization_l10n.slug %>"
<% else %>
<% next if element.best_name.blank? %>
<%= block_component_static block, :name, template: element, depth: 4, list: true %>
<%= block_component_static block, :url, template: element, depth: 5 %>
          logo: "<%= element.logo_component.blob&.id %>"
          external: true
<% end %>
<% end %>