noesya/osuny

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

Summary

Maintainability
Test Coverage
<%= block_component_static block, :description %>
      links:
<% block.template.elements.each do |element| %>
<%= block_component_static block, :title, template: element, depth: 4, list: true %>
<%= block_component_static block, :alt_title, template: element, depth: 5 %>
<%= block_component_static block, :description, template: element, depth: 5 %>
<%= block_component_static block, :url, template: element, depth: 5 %>
          external: <%= !(element.url.start_with?('/') || element.url.start_with?(@website.url)) %>
<%= block_component_static block, :image, template: element, depth: 5 %>
<% end %>