From fe65602b7e4a159820147a9cec119ee8fed23d47 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Mon, 30 Mar 2015 11:19:50 +0200 Subject: [PATCH] fix calentries empty? --- app/views/rubriken/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/rubriken/show.html.erb b/app/views/rubriken/show.html.erb index 3b1fd87..15078a0 100755 --- a/app/views/rubriken/show.html.erb +++ b/app/views/rubriken/show.html.erb @@ -46,11 +46,11 @@
- +<% unless @calentries.nil? || @calentries.empty? %> <% cache("calendar_" + @calentries.map{|c| c.id}.join('') + @calentries.max{|c|c.updated_at.to_i}.updated_at.to_i.to_s+"_"+I18n.locale.to_s+params[:month].to_s+params[:year].to_s) do %> <%= render 'calendars/calentries', :object=>@calentries %> <% end %> - +<% end %> <%= link_to "ics-format", calendar_path(@rubrik.calendar,:format=>:ics) %>