X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbd88d893f3c3fce9cafd666b94396988646d81f..75e178e6b884f3b2199f69e354ece2cae0a1f5fc:/app/views/diary_entry/view.html.erb?ds=sidebyside diff --git a/app/views/diary_entry/view.html.erb b/app/views/diary_entry/view.html.erb index 23a5230c1..5079074e8 100644 --- a/app/views/diary_entry/view.html.erb +++ b/app/views/diary_entry/view.html.erb @@ -25,9 +25,9 @@ <%= richtext_area :diary_comment, :body, :cols => 80, :rows => 15 %> <%= submit_tag t('diary_entry.view.save_button') %> <% end %> - <% if @user and @entry.subscribers.exists?(@user.id) %> + <% if current_user and @entry.subscribers.exists?(current_user.id) %>
- <% elsif @user %> + <% elsif current_user %> <% end %> <% end %>