Project

General

Profile

Feature #3398 » feature-3398-link-to-issues.diff

patch - Go MAEDA, 2015-07-26 06:59

View differences:

app/views/users/show.html.erb (working copy)
23 23
  <% end %>
24 24
</ul>
25 25

  
26
<h3><%=l(:label_issue_plural)%></h3>
27
<ul>
28
  <li><%= link_to l(:label_assigned_issues),
29
        issues_path(:set_filter => 1, :assigned_to_id => 'me', :sort => 'priority:desc,updated_on:desc') %>:
30
      <%= Issue.visible.open.where(:assigned_to_id => ([@user.id] + @user.group_ids)).count %>
31
  <li><%= link_to l(:label_reported_issues),
32
        issues_path(:set_filter => 1, :status_id => '*', :author_id => @user.id) %>:
33
      <%= Issue.visible.where(:author_id => @user.id).count %>
34
</ul>
35

  
26 36
<% unless @memberships.empty? %>
27 37
<h3><%=l(:label_project_plural)%></h3>
28 38
<ul>
......
42 52
                :action => 'index', :id => nil, :user_id => @user,
43 53
                :from => @events_by_day.keys.first %></h3>
44 54

  
45
<p>
46
<%=l(:label_reported_issues)%>: <%= Issue.where(:author_id => @user.id).count %>
47
</p>
48

  
49 55
<div id="activity">
50 56
<% @events_by_day.keys.sort.reverse.each do |day| %>
51 57
<h4><%= format_activity_day(day) %></h4>
config/locales/en.yml (working copy)
565 565
  label_logout: Sign out
566 566
  label_help: Help
567 567
  label_reported_issues: Reported issues
568
  label_assigned_issues: Assigned issues
568 569
  label_assigned_to_me_issues: Issues assigned to me
569 570
  label_last_login: Last connection
570 571
  label_registered_on: Registered on
(3-3/3)