X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/43db18ae911fef3ad7b36e9ed27e5eff469ef863..423ae5f8e048c91c00d7c46c05c7b529cbe2f9c7:/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 %>