noesya/osuny

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

Summary

Maintainability
Test Coverage
<%= block_component_static block, :mode %>
<%= block_options_static block %>
<%= block_component_static block, :layout %>
<%= block_component_static block, :description %>
<%= block_component_static block, :no_event_message %>
      title_link: "<%= block.template.title_link %>"
<%
if block.template.mode == 'category' && block.template.category
  category_l10n = block.template.category.localization_for(block.language)
%>
      category: "/<%= category_l10n.slug_with_ancestors_slugs(separator: '-') %>/"
<% end %>
      events:
<%
block.template.selected_events.each do |element|
  element_l10n = element.localization_for(block.language)
%>
        - path: "<%= element_l10n.current_permalink_in_website(@website)&.path %>"
          file: "<%= element_l10n.git_path_relative %>"
<% end %>