summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/users/show.html.erb14
-rw-r--r--config/locales/en.yml1
2 files changed, 11 insertions, 4 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 570be3154..c5180885f 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -23,6 +23,16 @@
<% end %>
</ul>
+<h3><%=l(:label_issue_plural)%></h3>
+<ul>
+ <li><%= link_to l(:label_assigned_issues),
+ issues_path(:set_filter => 1, :assigned_to_id => 'me', :sort => 'priority:desc,updated_on:desc') %>:
+ <%= Issue.visible.open.where(:assigned_to_id => ([@user.id] + @user.group_ids)).count %>
+ <li><%= link_to l(:label_reported_issues),
+ issues_path(:set_filter => 1, :status_id => '*', :author_id => @user.id) %>:
+ <%= Issue.visible.where(:author_id => @user.id).count %>
+</ul>
+
<% unless @memberships.empty? %>
<h3><%=l(:label_project_plural)%></h3>
<ul>
@@ -42,10 +52,6 @@
:action => 'index', :id => nil, :user_id => @user,
:from => @events_by_day.keys.first %></h3>
-<p>
-<%=l(:label_reported_issues)%>: <%= Issue.where(:author_id => @user.id).count %>
-</p>
-
<div id="activity">
<% @events_by_day.keys.sort.reverse.each do |day| %>
<h4><%= format_activity_day(day) %></h4>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index b81a471f4..c01fc9450 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -572,6 +572,7 @@ en:
label_logout: Sign out
label_help: Help
label_reported_issues: Reported issues
+ label_assigned_issues: Assigned issues
label_assigned_to_me_issues: Issues assigned to me
label_last_login: Last connection
label_registered_on: Registered on