aboutsummaryrefslogtreecommitdiff
path: root/views/events_daily.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/events_daily.html')
-rw-r--r--views/events_daily.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/views/events_daily.html b/views/events_daily.html
new file mode 100644
index 0000000..008b667
--- /dev/null
+++ b/views/events_daily.html
@@ -0,0 +1,18 @@
+%h2
+ Events List
+%p
+ %a{:href => "/events/list/#{(@start-1.day-10).strftime("%Y-%m-%d")}?"+request.query_string}
+ ← Previous day
+ = @start.strftime("%Y-%m-%d")
+ %a{:href => "/events/list/#{(@start+1.day+10).strftime("%Y-%m-%d")}?"+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 for today.