X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b1b8067cbe79d7ca2bca9021ab9d37465b0c44fe..refs/pull/5721/head:/resources/views/comments/comment.blade.php diff --git a/resources/views/comments/comment.blade.php b/resources/views/comments/comment.blade.php index 1cb709160..d70a8c1d9 100644 --- a/resources/views/comments/comment.blade.php +++ b/resources/views/comments/comment.blade.php @@ -1,9 +1,13 @@ +@php + $commentHtml = $comment->safeHtml(); +@endphp
@@ -19,7 +23,7 @@ @else {{ trans('common.deleted_user') }} @endif -  {{ trans('entities.comment_created', ['createDiff' => $comment->created]) }} +  {{ trans('entities.comment_created', ['createDiff' => $comment->created_at->diffForHumans() ]) }} @if($comment->isUpdated()) @@ -33,6 +37,12 @@ @if(userCan('comment-create-all')) @endif + @if(!$comment->parent_id && (userCan('comment-update', $comment) || userCan('comment-delete', $comment))) + + @endif @if(userCan('comment-update', $comment)) @endif @@ -69,13 +79,23 @@ @icon('reply'){{ trans('entities.comment_in_reply_to', ['commentId' => '#' . $comment->parent_id]) }}

@endif - {!! $comment->html !!} + @if($comment->content_ref) + + @endif + {!! $commentHtml !!}
@if(!$readOnly && userCan('comment-update', $comment))