To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / activities / _busy_institution.html.erb @ 1012:bbca6f4eebc7
History | View | Annotate | Download (500 Bytes)
| 1 | 1009:066b55d7c053 | chris | <% events = @events_by_day %>
|
|---|---|---|---|
| 2 | <% if (events.nil?)
|
||
| 3 | activity = Redmine::Activity::Fetcher.new(User.current)
|
||
| 4 | events = activity.events(Date.today - 14, Date.today + 1)
|
||
| 5 | end
|
||
| 6 | %>
|
||
| 7 | |||
| 8 | <% if events.empty? %>
|
||
| 9 | |||
| 10 | <% else %>
|
||
| 11 | |||
| 12 | <ul>
|
||
| 13 | |||
| 14 | <%
|
||
| 15 | 1011:f44860e089c5 | chris | for institution in busy_institutions(events, 5)
|
| 16 | 1009:066b55d7c053 | chris | %>
|
| 17 | |||
| 18 | <li class="busy"> |
||
| 19 | <span class="title"> |
||
| 20 | <%= link_to h(institution), { :controller => 'activities', :institution => institution } %>
|
||
| 21 | </span>
|
||
| 22 | </li>
|
||
| 23 | |||
| 24 | <% end %>
|
||
| 25 | </ul>
|
||
| 26 | <% end %> |