blob: ff5631094bfcc089e7f943c2369d59efe2f53824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
%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.
|