X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f2f3fbb1f19ad3cb26a3623d7af3d90e1f7a7caa..a66c34991acfff398fbc83c921dfce18a835ee26:/app/views/diary_entries/_diary_entry.html.erb diff --git a/app/views/diary_entries/_diary_entry.html.erb b/app/views/diary_entries/_diary_entry.html.erb index 50b49c37f..c7dbec386 100644 --- a/app/views/diary_entries/_diary_entry.html.erb +++ b/app/views/diary_entries/_diary_entry.html.erb @@ -1,4 +1,4 @@ -
+
<% if !@user %> <%= user_thumbnail diary_entry.user %> @@ -37,7 +37,7 @@ <% end %> - <% if current_user && current_user.administrator? %> + <% if can? :hide, DiaryEntry %>
  • <% if diary_entry.visible %> <%= 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") } %>