<%= link_to t('diary_entry.diary_entry.edit_link'), :action => 'edit', :display_name => diary_entry.user.display_name, :id => diary_entry.id %>
<% end %>
- <% if @user and diary_entry.user.id != @user.id %>
+ <% if current_user and diary_entry.user != current_user %>
<li>
- <%= link_to t('issues.report'), new_issue_url(reportable_id: diary_entry.id, reportable_type: diary_entry.class.name, reported_user_id: diary_entry.user.id) %>
+ <%= report_link(t(".report"), diary_entry) %>
</li>
<% end %>