Sha256: 58076ddd105b166c3f0a0365d2460a3894518122ae67c534a36e0b9a4efea30b

Contents?: true

Size: 919 Bytes

Versions: 8

Compression:

Stored size: 919 Bytes

Contents

<ul class="events">
  <% events.group_by(&:start_year).each do |year, years_events| %>
  <li><span class="collapsible open"><%= year %></span>
    <ul>
      <% years_events.group_by(&:start_month).each do |month, months_events| %>
      <li><span class="collapsible closed"><%= month %></span>
        <ul>
          <% months_events.each do |event| %>
          <li class="zoom">
            <p class="collapsible closed"><%= link_to event.name, event_path(event) %> (<%= event.start_on.strftime("%a") %> <%= event.start_day.ordinalize %>)</p>
            <%- if event.one_day? -%>
            <%= render :partial => 'events/one_day_list_event', :object => event %>
            <%- else -%>
            <%= render :partial => 'events/multi_day_list_event', :object => event %>
            <%- end -%>
          </li>
          <% end %>
        </ul>
      </li>
      <% end %>
    </ul>
  </li>
  <% end %>
</ul>  

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.7 app/views/events/_list_group.html.erb
event_calendar_engine-0.2.6 app/views/events/_list_group.html.erb
event_calendar_engine-0.2.5 app/views/events/_list_group.html.erb
event_calendar_engine-0.2.4 app/views/events/_list_group.html.erb
event_calendar_engine-0.2.3 app/views/events/_list_group.html.erb
event_calendar_engine-0.2.2 app/views/events/_list_group.html.erb
event_calendar_engine-0.2.1 app/views/events/_list_group.html.erb
event_calendar_engine-0.2.0 app/views/events/_list_group.html.erb