<% comments.each do |comment| %>
<div class="row">
<div class="col-auto">
- <%= link_to user_thumbnail(comment.user), user_path(comment.user) %>
+ <%= link_to user_thumbnail(comment.user), comment.user %>
</div>
<div class="col">
<p class="text-muted">
- <%= t ".comment_from_html", :user_link => link_to(comment.user.display_name, user_path(comment.user)),
+ <%= t ".comment_from_html", :user_link => link_to(comment.user.display_name, comment.user),
:comment_created_at => tag.time(l(comment.created_at.to_datetime, :format => :friendly),
:datetime => comment.created_at.xmlschema) %>
</p>
<% reports.each do |report| %>
<div class="row">
<div class="col-auto">
- <%= link_to user_thumbnail(report.user), user_path(report.user) %>
+ <%= link_to user_thumbnail(report.user), report.user %>
</div>
<div class="col">
<p class="text-muted">
<%= t ".reported_by_html", :category => report.category,
- :user => link_to(report.user.display_name, user_path(report.user)),
+ :user => link_to(report.user.display_name, report.user),
:updated_at => tag.time(l(report.updated_at.to_datetime, :format => :friendly),
:datetime => report.updated_at.xmlschema) %>
</p>
<td><%= t ".states.#{issue.status}" %></td>
<td class="text-nowrap"><%= link_to t(".reports_count", :count => issue.reports_count), issue %></td>
<td><%= link_to reportable_title(issue.reportable), reportable_url(issue.reportable) %></td>
- <td><%= link_to issue.reported_user.display_name, user_path(issue.reported_user) if issue.reported_user %></td>
+ <td><%= link_to issue.reported_user.display_name, issue.reported_user if issue.reported_user %></td>
<td>
<% if issue.user_updated %>
- <%= t ".last_updated_time_ago_user_html", :user => link_to(issue.user_updated.display_name, user_path(issue.user_updated)),
+ <%= t ".last_updated_time_ago_user_html", :user => link_to(issue.user_updated.display_name, issue.user_updated),
:time_ago => friendly_date_ago(issue.updated_at) %>
<% else %>
<%= friendly_date_ago(issue.updated_at) %>
| <%= t ".last_updated_at_html",
:datetime => tag.time(l(@issue.updated_at.to_datetime, :format => :friendly),
:datetime => @issue.updated_at.xmlschema),
- :displayname => link_to(@issue.user_updated.display_name, user_path(@issue.user_updated)) %>
+ :displayname => link_to(@issue.user_updated.display_name, @issue.user_updated) %>
<% end %>
</small>
</p>