X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f72c34aaf85b736a2d4b880886ca84f490b28ba0..46c183ffeb68a45e6e0793c813f2756109f40642:/app/views/diary_entry/_diary_entry.html.erb?ds=sidebyside diff --git a/app/views/diary_entry/_diary_entry.html.erb b/app/views/diary_entry/_diary_entry.html.erb index 5a34bad5e..d8ca41eaf 100644 --- a/app/views/diary_entry/_diary_entry.html.erb +++ b/app/views/diary_entry/_diary_entry.html.erb @@ -31,9 +31,9 @@ <%= 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 %>
  • - <%= 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) %>
  • <% end %>