noesya/osuny

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

Summary

Maintainability
Test Coverage
<%= block_component_static block, :description %>
<%= block_options_static block %>
      persons:
<%
block.template.selected_elements.each do |element|
  person = element.person
  next if person.nil?
  person_l10n = person.localization_for(block.language)
  next if person_l10n.nil?
%>
        - slug: "<%= person_l10n.slug %>"
<%= block_component_static block, :role, template: element, depth: 5 %>
<% end %>