diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-21 16:26:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-21 16:26:06 +0000 |
commit | 2fd9aa5f66de23e7b97bf123a162438270336442 (patch) | |
tree | c3b4fa46f63d26e3fa76754be3febf5a1af53d6a /app/views/users | |
parent | 500b0c6aff8070692a11f8729f81ed6635c6739f (diff) | |
download | redmine-2fd9aa5f66de23e7b97bf123a162438270336442.tar.gz redmine-2fd9aa5f66de23e7b97bf123a162438270336442.zip |
Link to assigned issues on user profiles (#3398).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@14717 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/show.html.erb | 14 |
1 files changed, 10 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> |