Mercurial > hg > soundsoftware-site
view app/views/activities/_busy_institution.html.erb @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 967fb7e62b1d |
children |
line wrap: on
line source
<% events = @events_by_day %> <% if (events.nil?) activity = Redmine::Activity::Fetcher.new(User.anonymous) days = Setting.activity_days_default.to_i events = activity.events(Date.today - days, Date.today + 1) end %> <% if events.empty? %> <% else %> <ul> <% for institution in busy_institutions(events, 5) %> <li class="busy"> <span class="title"> <%= link_to h(institution), { :controller => 'activities', :institution => institution } %> </span> </li> <% end %> </ul> <% end %>