% content_for :head do %>
<%= javascript_include_tag "share_buttons" %>
<% end %>
<% content_for :heading do %>
<%= user_image @diary_entry.user %>
<%= link_to t(".user_title", :user => @diary_entry.user.display_name), :action => :index %>
<%= render :partial => "navigation" %>
<% end %>
<%= render @diary_entry, :truncated => false %>
<%= share_buttons(:title => @diary_entry.title, :url => diary_entry_url(@diary_entry.user, @diary_entry)) %>
<% if current_user %>
<%= bootstrap_form_for @diary_entry.comments.new, :url => comment_diary_entry_path(@diary_entry.user, @diary_entry) do |f| %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :hide_label => true %>
<%= f.primary %>
<% end %>
<% else %>
<% end %>
<% content_for :auto_discovery_link_tag do -%>
<%= auto_discovery_link_tag :rss, :action => :rss, :display_name => @diary_entry.user.display_name %>
<% end -%>
<%= t(".discussion") %>
<% if current_user %>