%h2
  Events List
- if @start
  %p
    %a{:href => "/events/list/#{(@start-1.day+1.hour).strftime("%F")}?"+request.query_string}
      ← Previous day
    = @start.strftime("%F")
    %a{:href => "/events/list/#{(@start+1.day+1.hour).strftime("%F")}?"+request.query_string}
      Next day →
    |
    %a{:href => "/events/calendar/#{@start.strftime("%Y-%m")}?"+request.query_string}
      Calendar view
  = partial('events_form')
- if @events.length > 0
  = partial('history', :collection => @events)
- else
  %p
    %strong
      No events.