Merge pull request #4173 from AntonKhorev/comments

Small changes of diary comments
This commit is contained in:
Andy Allan 2023-08-16 11:27:42 +01:00 committed by GitHub
commit 59e9203a0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,4 @@
<article class='diary_post border-top border-grey pt-3 pb-2<%= " text-muted px-3 bg-danger bg-opacity-10" unless diary_entry.visible %> user_<%= diary_entry.user.id %>'>
<article class='diary_post border-top border-grey py-3<%= " text-muted px-3 bg-danger bg-opacity-10" unless diary_entry.visible %> user_<%= diary_entry.user.id %>'>
<div class='mb-3'>
<% if @user %>
<h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>

View file

@ -12,8 +12,7 @@
<%= render @entry %>
<a id="comments"></a>
<div class='comments mt-2'>
<div id="comments" class="comments">
<%= render :partial => "diary_comment", :collection => @comments %>
</div>