Sha256: fbb31e56dc374cad88512e1b248d958c13024c9b937b64230cf81fd1ea41b53e

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

<% if meetings.present? %>
  <div class="conference__program-item">
    <div class="conference__program-time">
      <%= start_time.to_s(:time) %> - <%= end_time.to_s(:time) %>
    </div>
    <div>
      <% categories = meetings.map(&:category).uniq %>
      <% seed = SecureRandom.hex(3).to_s %>
      <% if categories.present? %>
        <ul class="conference__program-category-container">
          <% categories.each do |category| %>
            <li>
              <div class="conference__program-category">
                <%= category.present? ? translated_attribute(category.name) : "other" %>
              </div>
            </li>
          <% end %>
        </ul>
      <% end %>

      <% meetings.group_by(&:category).each do |categories_block| %>
        <div class="conference__program-category-content">
          <% categories_block.last.each do |meeting| %>
            <%= render partial: "program_meeting", locals: { meeting: } %>
          <% end %>
        </div>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-conferences-0.28.4 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.28.3 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.28.2 app/views/decidim/conferences/conference_program/_program_item.html.erb