X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8181cb4bf77548088f959562f24be17f8ec053a3..8a9261ea0749ce9bf714073542a017133de01378:/app/views/diary_entry/view.rhtml diff --git a/app/views/diary_entry/view.rhtml b/app/views/diary_entry/view.rhtml index fbc316cc1..6e1f75a32 100644 --- a/app/views/diary_entry/view.rhtml +++ b/app/views/diary_entry/view.rhtml @@ -1,12 +1,14 @@ -

<%= @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 %> -

Leave a comment

+

Leave a comment

<%= error_messages_for 'diary_comment' %> <% form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %> <%= f.text_area :body, :cols => 80, :rows => 5 %> @@ -17,6 +19,6 @@ <% else %> -

<%= link_to "Login", :controller => 'user', :action => 'login', :referer => request.request_uri %> to leave a comment

+

<%= link_to "Login", :controller => 'user', :action => 'login', :referer => request.request_uri %> to leave a comment

<% end %>