]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/_diary_comment.html.erb
Fixed tests + Altered migration file + Added reporting strings + Added update method
[rails.git] / app / views / diary_entry / _diary_comment.html.erb
index f53e30f45434b32efdbeb881b864b401ec741127..d74d06b8906daf93b57e5c1265fbb4653958b2bf 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 'Report', new_issue_url(reportable_id: diary_comment.id, reportable_type: diary_comment.class.name, reported_user_id: diary_comment.user.id) %>
+  <% end %>
 </div>