1 <% content_for :head do %>
2 <%= javascript_include_tag "social_share_button" %>
5 <% content_for :heading do %>
7 <div class="col-sm-auto">
8 <%= user_image @entry.user %>
11 <h1><%= link_to t(".user_title", :user => @entry.user.display_name), :action => :index %></h1>
12 <p><%= rss_link_to :action => :rss, :display_name => @entry.user.display_name %></p>
18 <%= social_share_buttons(:title => @entry.title, :url => diary_entry_url(@entry.user, @entry)) %>
20 <div id="comments" class="comments mb-3 overflow-hidden">
21 <div class="row border-bottom border-secondary-subtle">
22 <h2 class="col"><%= t(".discussion") %></h2>
25 <div class="col-auto">
26 <% if @entry.subscribers.exists?(current_user.id) %>
27 <%= link_to t(".unsubscribe"), diary_entry_unsubscribe_path(@entry.user, @entry), :method => :post, :class => "btn btn-sm btn-primary" %>
29 <%= link_to t(".subscribe"), diary_entry_subscribe_path(@entry.user, @entry), :method => :post, :class => "btn btn-sm btn-primary" %>
35 <%= render :partial => "diary_comment", :collection => @comments %>
40 <h3 id="newcomment"><%= t ".leave_a_comment" %></h3>
42 <%= bootstrap_form_for @entry.comments.new, :url => comment_diary_entry_path(@entry.user, @entry) do |f| %>
43 <%= f.richtext_field :body, :cols => 80, :rows => 20, :hide_label => true %>
47 <h3 id="newcomment"><%= t(".login_to_leave_a_comment_html", :login_link => link_to(t(".login"), login_path(:referer => request.fullpath))) %></h3>
51 <% content_for :auto_discovery_link_tag do -%>
52 <%= auto_discovery_link_tag :rss, :action => :rss, :display_name => @entry.user.display_name %>