X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ff8fbcbdc5df416d1b52b710485bffcb0e6a49ce..a5a6713bfcc4871060cbc3817e99ce7b23bbb8e7:/app/views/diary_entries/_diary_entry.html.erb?ds=sidebyside diff --git a/app/views/diary_entries/_diary_entry.html.erb b/app/views/diary_entries/_diary_entry.html.erb index a25ef10db..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 %>