Sha256: ecadbc690be16647079db6af1ad02ef4a8e91c8a4523265f337721473c390515

Contents?: true

Size: 1.44 KB

Versions: 46

Compression:

Stored size: 1.44 KB

Contents

<% if meetings.present? %>
  <div class="row collapse">
    <% categories = meetings.collect(&:category).uniq %>
    <% seed = SecureRandom.hex(3).to_s %>
    <% if categories.present? %>
      <div class="row">
        <div class="column medium-10 medium-push-2">
          <ul class="tabs buttons__row" id="conference-row-<%= seed %>-tabs" data-tabs>
            <% categories.each_with_index do |category, i| %>
              <li class="tabs-title<%= " is-active" if i == 0 %>">
                <!-- Wrap the anchor inside a div to keep correct button styling -->
                <div>
                  <a href="#conference-row-<%= seed %>-tab<%= i %>" class="button button--shadow tiny hollow">
                    <%= category.present? ? translated_attribute(category.name) : "other" %>
                  </a>
                </div>
              </li>
            <% end %>
          </ul>
        </div>
      </div>
    <% end %>
    <div class="tabs-content" data-tabs-content="conference-row-<%= seed %>-tabs">
      <% meetings.group_by(&:category).each_with_index do |categories_block, i| %>
        <div class="tabs-panel<%= " is-active" if i == 0 %>" id="conference-row-<%= seed %>-tab<%= i %>">
          <% categories_block.last.each do |meeting| %>
            <%= render partial: "program_meeting", locals: { end_time: end_time, start_time: start_time, meeting: meeting } %>
          <% end %>
        </div>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
decidim-conferences-0.27.9 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.8 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.7 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.6 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.26.10 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.26.9 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.5 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.26.8 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.4 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.3 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.26.7 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.26.5 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.2 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.1 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.26.4 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.0 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.26.3 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.0.rc2 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.27.0.rc1 app/views/decidim/conferences/conference_program/_program_item.html.erb
decidim-conferences-0.26.2 app/views/decidim/conferences/conference_program/_program_item.html.erb