Sha256: 1570851faab2e9bf5641ea640b7545ff2888c4ddebe62b1874d1b5d3fd20ad26

Contents?: true

Size: 1.67 KB

Versions: 5

Compression:

Stored size: 1.67 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 class="text-uppercase"><%= 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 class="text-uppercase"><%= 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

5 entries across 5 versions & 1 rubygems

Version Path
decidim-meetings-0.21.0 app/views/decidim/meetings/meetings/_meeting_agenda.html.erb
decidim-meetings-0.20.1 app/views/decidim/meetings/meetings/_meeting_agenda.html.erb
decidim-meetings-0.20.0 app/views/decidim/meetings/meetings/_meeting_agenda.html.erb
decidim-meetings-0.19.1 app/views/decidim/meetings/meetings/_meeting_agenda.html.erb
decidim-meetings-0.19.0 app/views/decidim/meetings/meetings/_meeting_agenda.html.erb