X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0fb635e8bc992d6753c781a23c738342e91903f0..5f2a5cadcb693b34b81a9232b8879c3b4f12843d:/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 9c7d7b2dc..62e701d14 100644 --- a/app/views/diary_entries/_diary_entry.html.erb +++ b/app/views/diary_entries/_diary_entry.html.erb @@ -1,4 +1,4 @@ -
+
<%= render :partial => "diary_entry_heading", :object => diary_entry, :as => "diary_entry" %>
@@ -23,7 +23,7 @@ <% end %> - <% if current_user && current_user == diary_entry.user %> + <% if can?(:edit, diary_entry) %>
  • <%= link_to t(".edit_link"), edit_diary_entry_path(diary_entry.user, diary_entry) %>
  • <% end %>