aboutsummaryrefslogtreecommitdiff
path: root/views/events_calendar.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/events_calendar.haml')
-rw-r--r--views/events_calendar.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/views/events_calendar.haml b/views/events_calendar.haml
index e3cec5e..0ff4e17 100644
--- a/views/events_calendar.haml
+++ b/views/events_calendar.haml
@@ -1,11 +1,10 @@
%h2
Events Calendar
-
%p
- %a{:href => "/events/calendar/#{(@month-31.days).strftime("%Y-%m")}?"+request.query_string}
+ %a{:href => "/events/calendar/#{(@month << 1).strftime("%Y-%m")}?"+request.query_string}
&larr; Previous Month
= @month.strftime("%b %Y")
- %a{:href => "/events/calendar/#{(@month+31.days).strftime("%Y-%m")}?"+request.query_string}
+ %a{:href => "/events/calendar/#{(@month >> 1).strftime("%Y-%m")}?"+request.query_string}
Next month &rarr;
= partial('events_form')
= partial('events_calendar')