1 <h2><%= t 'diary_entry.view.user_title', :user => h(@entry.user.display_name) %></h2>
3 <%= render :partial => 'diary_entry', :object => @entry %>
7 <%= render :partial => 'diary_comment', :collection => @entry.diary_comments %>
11 <h4 id="newcomment"><%= t 'diary_entry.view.leave_a_comment' %></h4>
12 <%= error_messages_for 'diary_comment' %>
13 <% form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %>
14 <%= f.text_area :body, :cols => 80, :rows => 5 %>
17 <%= submit_tag t('diary_entry.view.save_button') %>
22 <h4 id="newcomment"><%= t("diary_entry.view.login_to_leave_a_comment", :login_link => link_to(t("diary_entry.view.login"), :controller => 'user', :action => 'login', :referer => request.request_uri)) %></h4>