Sha256: 0432e10e973f67fb839f5c055df016c0e06a1fe4b147aeed85f16eac9825d4b8

Contents?: true

Size: 571 Bytes

Versions: 5

Compression:

Stored size: 571 Bytes

Contents

<div id="event_list">
  (<%= link_to t('page.calendar'), events_path(library_id: @library.name, mode: 'calendar') -%>)
  <ul>
    <%- @events.each do |event| -%>
      <li>
        <%= link_to event.display_name, event -%>
        <% if event.all_day? %>
          (<%= l(event.start_at, format: :only_date) -%> - <%= l(event.end_at, format: :only_date) -%>)
        <% else %>
          (<%= l(event.start_at) -%> - <%= l(event.end_at) -%>)
        <% end %>
      </li>
    <%- end -%>
  </ul>

  <%= paginate(@events, param_name: :event_page, remote: true) -%>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enju_library-0.4.0.rc.1 app/views/libraries/_calendar.html.erb
enju_library-0.4.0.beta.4 app/views/libraries/_calendar.html.erb
enju_library-0.4.0.beta.3 app/views/libraries/_calendar.html.erb
enju_library-0.4.0.beta.2 app/views/libraries/_calendar.html.erb
enju_library-0.4.0.beta.1 app/views/libraries/_calendar.html.erb