aboutsummaryrefslogtreecommitdiff
path: root/views/events_daily.html
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-24 12:27:20 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-24 12:27:20 +0100
commite99647bf05482e2eecca254fac1c87c9cbe82864 (patch)
tree03e760d600d4764a2e072f4bd2e5c3856120dc8b /views/events_daily.html
parent71f395243d5cb7e2de918908f5c80b4ece37f58f (diff)
Added missing views
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}
+ &larr; Previous day
+ = @start.strftime("%Y-%m-%d")
+ %a{:href => "/events/list/#{(@start+1.day+10).strftime("%Y-%m-%d")}?"+request.query_string}
+ Next day &rarr;
+ |
+ %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.