]> source.dussan.org Git - redmine.git/commitdiff
Link to assigned issues on user profiles (#3398).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Oct 2015 16:26:06 +0000 (16:26 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Oct 2015 16:26:06 +0000 (16:26 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@14717 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/users/show.html.erb
config/locales/en.yml

index 570be315480e9f3e0f5e030c0a4f1c01aded8393..c5180885f323673c9db69e4ba6735791792fb32f 100644 (file)
   <% 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>
                 :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>
index b81a471f47bc74a6b34423448626a4539639117f..c01fc9450f398794b708cc9be6b2bfa94fab36a7 100644 (file)
@@ -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