X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/bae0e80cee6acf111c7b69568ced4a8b5ce0c72d..refs/pull/5349/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..b507a810b 100644 --- a/resources/views/comments/comment.blade.php +++ b/resources/views/comments/comment.blade.php @@ -1,19 +1,24 @@ +@php + $commentHtml = $comment->safeHtml(); +@endphp
@if ($comment->createdBy)
- {{ $comment->createdBy->name }} + {{ $comment->createdBy->name }}
@endif -
+
@if ($comment->createdBy) {{ $comment->createdBy->getShortName(16) }} @else @@ -31,14 +36,14 @@ @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
@@ -65,17 +70,17 @@
@if ($comment->parent_id) -

+

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

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