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