|
|
|
@ -77,8 +77,7 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<%= link_to l(:label_activity), :controller => '/activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %> |
|
|
|
|
</h3> |
|
|
|
|
<p> |
|
|
|
|
<% admin_user = User.admin.count == 1 ? User.admin : User.admin.first %> |
|
|
|
|
<%=l(:label_reported_work_packages)%>: <%= WorkPackage.visible(admin_user).count(:conditions => ["author_id=?", @user.id]) %> |
|
|
|
|
<%=l(:label_reported_work_packages)%>: <%= WorkPackage.visible(User.admin.first).count(:conditions => ["author_id=?", @user.id]) %> |
|
|
|
|
</p> |
|
|
|
|
<div id="activity"> |
|
|
|
|
<% @events_by_day.keys.sort.reverse.each do |day| %> |
|
|
|
|