X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3e8d8092500a3713e8dfbb4fd61fd8a95d067d20..1980cf1da827655ed2169b0c2c6158367c2845dc:/app/views/diary_entry/view.html.erb
diff --git a/app/views/diary_entry/view.html.erb b/app/views/diary_entry/view.html.erb
index 312b7b81a..c3e49a227 100644
--- a/app/views/diary_entry/view.html.erb
+++ b/app/views/diary_entry/view.html.erb
@@ -8,19 +8,19 @@
<%= render :partial => 'diary_comment', :collection => @entry.visible_comments %>
-<% if @user %>
-
-
-<%= error_messages_for 'diary_comment' %>
-<% form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %>
-<%= f.text_area :body, :cols => 80, :rows => 5 %>
-
-
-<%= submit_tag t('diary_entry.view.save_button') %>
-<% end %>
+<% if_logged_in(:div) do %>
+
-<% else %>
+ <%= error_messages_for 'diary_comment' %>
-
+ <% form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %>
+ <%= f.text_area :body, :cols => 80, :rows => 5 %>
+
+
+ <%= submit_tag t('diary_entry.view.save_button') %>
+ <% end %>
+<% end %>
+<% if_not_logged_in(:div) do %>
+
<% end %>