view app/views/activities/_busy_institution.html.erb @ 1313:17f075c7fd41 redmine-2.2-integration

toggles bibtex.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 18 Jun 2013 14:59:04 +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 %>