Patch #19548 » link_to_issues.diff
app/views/users/show.html.erb (working copy) | ||
---|---|---|
43 | 43 |
:from => @events_by_day.keys.first %></h3> |
44 | 44 | |
45 | 45 |
<p> |
46 |
<%=l(:label_reported_issues)%>: <%= Issue.where(:author_id => @user.id).count %> |
|
46 |
<% reported_issues = Issue.where(:author_id => @user.id) -%> |
|
47 |
<%=l(:label_reported_issues)%>: |
|
48 |
<%= link_to_if(reported_issues.count > 0, l(:label_x_issues, :count => reported_issues.count), issues_path(:set_filter => 1, :status_id => '*', :author_id => @user.id)) %> |
|
47 | 49 |
</p> |
48 | 50 | |
49 | 51 |
<div id="activity"> |