X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/f5396ecaf010a34c1a53d13793a5fea68089fdfe..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 8933e2e6a..d70a8c1d9 100644 --- a/resources/views/comments/comment.blade.php +++ b/resources/views/comments/comment.blade.php @@ -1,25 +1,29 @@ +@php + $commentHtml = $comment->safeHtml(); +@endphp
@if ($comment->createdBy)
- {{ $comment->createdBy->name }} + {{ $comment->createdBy->name }}
@endif -
+
@if ($comment->createdBy) {{ $comment->createdBy->getShortName(16) }} @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()) @@ -31,14 +35,20 @@ @if(!$readOnly && (userCan('comment-create-all') || userCan('comment-update', $comment) || userCan('comment-delete', $comment)))
@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 @if(userCan('comment-delete', $comment)) @endif
@@ -65,17 +75,27 @@ @if(!$readOnly && userCan('comment-update', $comment))