X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9c04912f1deb7b114c61e838a6e4a4b7775167d8..e8cb7ac8f16987788fb65889b14a7e1446a46da3:/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 848221a28..930f20e5e 100644
--- a/app/views/diary_entry/_diary_entry.html.erb
+++ b/app/views/diary_entry/_diary_entry.html.erb
@@ -31,8 +31,16 @@
<%= link_to t('.edit_link'), :action => 'edit', :display_name => diary_entry.user.display_name, :id => diary_entry.id %>
<% end %>
+ <% if current_user and diary_entry.user != current_user %>
+
+ <%= report_link(t(".report"), diary_entry) %>
+
+ <% end %>
+
<% if current_user && current_user.administrator? %>
- <%= link_to t('.hide_link'), hide_diary_entry_path(:display_name => diary_entry.user.display_name, :id => diary_entry.id), :method => :post, :data => { :confirm => t('.confirm') } %>
+
+ <%= link_to t('.hide_link'), hide_diary_entry_path(:display_name => diary_entry.user.display_name, :id => diary_entry.id), :method => :post, :data => { :confirm => t('.confirm') } %>
+
<% end %>