Revision 1031:873d052b361b app
| app/views/activities/_busy.html.erb | ||
|---|---|---|
| 1 | 1 |
<% events = @events_by_day %> |
| 2 | 2 |
<% if (events.nil?) |
| 3 |
activity = Redmine::Activity::Fetcher.new(User.current)
|
|
| 3 |
activity = Redmine::Activity::Fetcher.new(User.anonymous)
|
|
| 4 | 4 |
events = activity.events(Date.today - 14, Date.today + 1) |
| 5 | 5 |
end |
| 6 | 6 |
%> |
| app/views/activities/_busy_institution.html.erb | ||
|---|---|---|
| 1 | 1 |
<% events = @events_by_day %> |
| 2 | 2 |
<% if (events.nil?) |
| 3 |
activity = Redmine::Activity::Fetcher.new(User.current) |
|
| 4 |
events = activity.events(Date.today - 14, Date.today + 1) |
|
| 3 |
activity = Redmine::Activity::Fetcher.new(User.anonymous) |
|
| 4 |
days = Setting.activity_days_default.to_i |
|
| 5 |
events = activity.events(Date.today - days, Date.today + 1) |
|
| 5 | 6 |
end |
| 6 | 7 |
%> |
| 7 | 8 |
|
| ... | ... | |
| 24 | 25 |
<% end %> |
| 25 | 26 |
</ul> |
| 26 | 27 |
<% end %> |
| 28 |
|
|
| app/views/projects/explore.html.erb | ||
|---|---|---|
| 1 | 1 |
|
| 2 |
<% cache(:action => 'explore', :action_suffix => 'tags') do %> |
|
| 2 | 3 |
<h2><%= l(:label_explore_projects) %></h2> |
| 3 |
|
|
| 4 | 4 |
<div class="tags box"> |
| 5 | 5 |
<h3><%=l(:label_project_tags_all)%></h3> |
| 6 | 6 |
<%= render :partial => 'projects/tagcloud' %> |
| 7 | 7 |
</div> |
| 8 |
<% end %> |
|
| 9 |
|
|
| 8 | 10 |
<div class="splitcontentleft"> |
| 11 |
<% cache(:action => 'explore', :action_suffix => 'busy_institutions') do %> |
|
| 9 | 12 |
<div class="institutions box"> |
| 10 | 13 |
<h3><%=l(:label_institutions_busy)%></h3> |
| 11 | 14 |
<%= render :partial => 'activities/busy_institution' %> |
| 12 | 15 |
</div> |
| 16 |
<% end %> |
|
| 13 | 17 |
<div class="projects box"> |
| 14 | 18 |
<h3><%=l(:label_project_latest)%></h3> |
| 15 | 19 |
<%= render :partial => 'projects/latest' %> |
| 16 | 20 |
</div> |
| 17 | 21 |
</div> |
| 18 | 22 |
<div class="splitcontentright"> |
| 23 |
<% cache(:action => 'explore', :action_suffix => 'busy_projects') do %> |
|
| 19 | 24 |
<div class="projects box"> |
| 20 | 25 |
<h3><%=l(:label_projects_busy)%></h3> |
| 21 | 26 |
<%= render :partial => 'activities/busy' %> |
| 22 | 27 |
</div> |
| 28 |
<% end %> |
|
| 23 | 29 |
</div> |
Also available in: Unified diff