X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/634565c5d399b71192484ac10fc2f8f1570e95f3..e2f1d6017d3e7c243f3e2cdd84e9dbf8378c22b9:/app/views/diary_entry/_diary_comment.html.erb
diff --git a/app/views/diary_entry/_diary_comment.html.erb b/app/views/diary_entry/_diary_comment.html.erb
index b2a444982..163af888f 100644
--- a/app/views/diary_entry/_diary_comment.html.erb
+++ b/app/views/diary_entry/_diary_comment.html.erb
@@ -1,6 +1,7 @@
-
-<%= htmlize(diary_comment.body) %>
-<% if @user && @user.administrator? %>
-<%= link_to t('diary_entry.diary_comment.hide_link'), {:action => 'hidecomment', :display_name => @user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id}, {:confirm => t('diary_entry.diary_comment.confirm')} %>
+<%= user_thumbnail diary_comment.user %>
+
+<%= diary_comment.body.to_html %>
+<%= 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 %>