+ <% if current_user %>
+ <div class="col-auto">
+ <% if @entry.subscribers.exists?(current_user.id) %>
+ <%= link_to t(".unsubscribe"), diary_entry_unsubscribe_path(@entry.user, @entry), :method => :post, :class => "btn btn-sm btn-primary" %>
+ <% else %>
+ <%= link_to t(".subscribe"), diary_entry_subscribe_path(@entry.user, @entry), :method => :post, :class => "btn btn-sm btn-primary" %>
+ <% end %>
+ </div>
+ <% end %>
+ </div>
+
+ <%= render :partial => "diary_comment", :collection => @comments %>
+</div>