X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8181cb4bf77548088f959562f24be17f8ec053a3..3b329ff9f9d799b2d3e4fe8a0030bd30aa08adef:/app/views/diary_entry/view.rhtml
diff --git a/app/views/diary_entry/view.rhtml b/app/views/diary_entry/view.rhtml
index fbc316cc1..85fe71ae4 100644
--- a/app/views/diary_entry/view.rhtml
+++ b/app/views/diary_entry/view.rhtml
@@ -1,22 +1,24 @@
-
<%= @entry.user.display_name %>'s diary
+<%= h(@entry.user.display_name) %>'s diary
<%= render :partial => 'diary_entry', :object => @entry %>
+
+
<%= render :partial => 'diary_comment', :collection => @entry.diary_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 'Save' %>
+<%= submit_tag t('diary_entry.view.save_button') %>
<% end %>
<% else %>
-
+
<% end %>