Project

General

Profile

Patch #19548 » link_to_issues.diff

patch - Go MAEDA, 2015-04-02 05:13

View differences:

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">
(2-2/3)