Sha256: 306c6eed4aa3686ca5ae7305b4721b3f73543c563815ceea8a80aa6d5bcdf889

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

<% if meetings.present? %>
  <div class="conference__program-item">
    <div class="conference__program-time">
      <%= start_time.to_fs(:time) %> - <%= end_time.to_fs(: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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.29.0 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.29.0.rc4 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.29.0.rc3 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.29.0.rc2 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.29.0.rc1 app/views/decidim/conferences/conference_program/_program_item.html.erb