comparison app/views/activities/_busy_institution.html.erb @ 1021:967fb7e62b1d browsing

Include only public projects in busy institutions / projects queries, so results can be cached (the tag cloud was already public projects only). Introduce tentatively some cacheing thingies
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 13 Nov 2012 10:35:23 +0000
parents e816ffefcb71
children
comparison
equal deleted inserted replaced
1020:e816ffefcb71 1021:967fb7e62b1d
1 <% events = @events_by_day %> 1 <% events = @events_by_day %>
2 <% if (events.nil?) 2 <% if (events.nil?)
3 activity = Redmine::Activity::Fetcher.new(User.current) 3 activity = Redmine::Activity::Fetcher.new(User.anonymous)
4 days = Setting.activity_days_default.to_i 4 days = Setting.activity_days_default.to_i
5 events = activity.events(Date.today - days, Date.today + 1) 5 events = activity.events(Date.today - days, Date.today + 1)
6 end 6 end
7 %> 7 %>
8 8
23 </li> 23 </li>
24 24
25 <% end %> 25 <% end %>
26 </ul> 26 </ul>
27 <% end %> 27 <% end %>
28