Sha256: 115114c14ca9a5bc0bcde170f2f2ad9d6e423bc34ddaaeb4b8ba884b914b34d7

Contents?: true

Size: 1.63 KB

Versions: 42

Compression:

Stored size: 1.63 KB

Contents

<div class="section agenda-section">
  <div class="flex--sbe">
    <h2 class="section-heading"><%= translated_attribute(meeting.agenda.title) %></h2>
  </div>
  <div class="card">
    <div class="card__content scroll">
      <% agenda_items_times = calculate_start_and_end_time_of_agenda_items(meeting.agenda.agenda_items.first_class, meeting) %>
      <% meeting.agenda.agenda_items.first_class.each_with_index do |agenda_item, index| %>
        <h5 class="agenda-item--title heading5">
          <strong><%= translated_attribute(agenda_item.title) %></strong>&nbsp;
          <span class="text-small"><%= display_duration_agenda_items(agenda_item.id, index, agenda_items_times) %></span>
        </h5>
        <hr class="reset m-none mb-s">
        <p><%= translated_attribute(agenda_item.description).html_safe %></p>

        <% if agenda_item.agenda_item_children.presence %>
          <% parent_start_time = agenda_items_times[index][:start_time] %>
          <% agenda_item_children_times = calculate_start_and_end_time_of_agenda_items(agenda_item.agenda_item_children, meeting, parent_start_time) %>

          <% agenda_item.agenda_item_children.each_with_index do |agenda_item_child, index_child| %>
            <h6 class="heading6">
              <strong><%= translated_attribute(agenda_item_child.title) %></strong>&nbsp;
              <span class="text-small"><%= display_duration_agenda_items(agenda_item_child.id, index_child, agenda_item_children_times) %></span>
            </h6>
            <p><%= translated_attribute(agenda_item_child.description).html_safe %></p>
          <% end %>
        <% end %>
      <% end %>
    </div>
  </div>
</div>

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
decidim-meetings-0.23.0 app/views/decidim/meetings/meetings/_meeting_agenda.html.erb
decidim-meetings-0.22.0 app/views/decidim/meetings/meetings/_meeting_agenda.html.erb