X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/07de6ecdc5c69a34618ea954183e5630baeb0456..refs/pull/5293/head:/resources/views/comments/comment.blade.php diff --git a/resources/views/comments/comment.blade.php b/resources/views/comments/comment.blade.php index 04468b83c..b507a810b 100644 --- a/resources/views/comments/comment.blade.php +++ b/resources/views/comments/comment.blade.php @@ -1,17 +1,25 @@ -
safeHtml(); +@endphp +
-
-
-
+
+
+ @if ($comment->createdBy) +
+ {{ $comment->createdBy->name }} +
+ @endif +
@if ($comment->createdBy) - {{ $comment->createdBy->name }} -   {{ $comment->createdBy->getShortName(16) }} @else {{ trans('common.deleted_user') }} @@ -25,16 +33,17 @@ @endif
+ @if(!$readOnly && (userCan('comment-create-all') || userCan('comment-update', $comment) || userCan('comment-delete', $comment)))
@if(userCan('comment-create-all')) - + @endif @if(userCan('comment-update', $comment)) - + @endif @if(userCan('comment-delete', $comment)) + @endif
-
+
@if ($comment->parent_id) -

+

@icon('reply'){{ trans('entities.comment_in_reply_to', ['commentId' => '#' . $comment->parent_id]) }}

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