summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/content_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb
index 5a288ed..c85fcf5 100644
--- a/app/helpers/content_helper.rb
+++ b/app/helpers/content_helper.rb
@@ -10,6 +10,11 @@ module ContentHelper
10 10
11 def calendar 11 def calendar
12 occurrences = Occurrence.find_in_range(Time.now, (Time.now+14.days)) 12 occurrences = Occurrence.find_in_range(Time.now, (Time.now+14.days))
13
14 if occurrences.empty?
15 occurrences = Occurrence.find_next
16 end
17
13 render( 18 render(
14 :partial => 'content/front_page_calendar', 19 :partial => 'content/front_page_calendar',
15 :locals => {:occurrences => occurrences} 20 :locals => {:occurrences => occurrences}