]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/_diary_comment.html.erb
Fixed link to DiaryComments
[rails.git] / app / views / diary_entry / _diary_comment.html.erb
index f53e30f45434b32efdbeb881b864b401ec741127..c741d7734630f5ca93b206c1102db4ec82979933 100644 (file)
@@ -5,5 +5,7 @@
   <%= if_administrator(:span) do %>
     <%= link_to t('diary_entry.diary_comment.hide_link'), hide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data=> { :confirm => t('diary_entry.diary_comment.confirm') } %> |
   <% end %>
-  <%= link_to 'Report', new_issue_url(reportable_id: diary_comment.id, reportable_type: diary_comment.class.name, reported_user_id: diary_comment.user.id) %>
+  <% if @user and diary_comment.user.id != @user.id %>
+       <%= link_to t('issues.report'), new_issue_url(reportable_id: diary_comment.id, reportable_type: diary_comment.class.name, reported_user_id: diary_comment.user.id) %>
+  <% end %>
 </div>