Sha256: 955d11b159c452118c6459d187abcef92f2e9c33a9e17340c3f56f045f6e42ef

Contents?: true

Size: 580 Bytes

Versions: 47

Compression:

Stored size: 580 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.localize, 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

47 entries across 45 versions & 2 rubygems

Version Path
enju_library-0.1.0.pre43 app/views/libraries/_calendar.html.erb
enju_library-0.1.0.pre42 app/views/libraries/_calendar.html.erb
enju_library-0.1.0.pre41 app/views/libraries/_calendar.html.erb
enju_library-0.1.0.pre40 app/views/libraries/_calendar.html.erb
enju_library-0.1.0.pre39 app/views/libraries/_calendar.html.erb
enju_library-0.1.0.pre38 app/views/libraries/_calendar.html.erb
enju_library-0.1.0.pre37 app/views/libraries/_calendar.html.erb