X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/41f56e659dfb82b2a8750dcfb62ea2e51c9a9ec6..refs/pull/1755/head:/resources/views/comments/comment.blade.php diff --git a/resources/views/comments/comment.blade.php b/resources/views/comments/comment.blade.php index e32de68f2..ea96a9250 100644 --- a/resources/views/comments/comment.blade.php +++ b/resources/views/comments/comment.blade.php @@ -1,64 +1,70 @@ -
-
- -
- @if(userCan('comment-update', $comment)) - - @endif - @if(userCan('comment-create-all')) - - @endif - @if(userCan('comment-delete', $comment)) - - - @endif -
- -
- #{{$comment->local_id}} -    - {{ $comment->createdBy->name }} -   - {{ $comment->createdBy->name }} - {{--TODO - Account for deleted user--}} - - {{ trans('entities.comment_created', ['createDiff' => $comment->created]) }} - - @if($comment->isUpdated()) - +
+
+
+
+ #{{$comment->local_id}} +    + @if ($comment->createdBy) + {{ $comment->createdBy->name }} +   + {{ $comment->createdBy->name }} + @else + {{ trans('common.deleted_user') }} + @endif + {{ trans('entities.comment_created', ['createDiff' => $comment->created]) }} + @if($comment->isUpdated()) + •  - {{ trans('entities.comment_updated', ['updateDiff' => $comment->updated, 'username' => $comment->updatedBy->name]) }} + {{ trans('entities.comment_updated', ['updateDiff' => $comment->updated, 'username' => $comment->updatedBy? $comment->updatedBy->name : trans('common.deleted_user')]) }} - @endif + @endif +
+
+ @if(userCan('comment-update', $comment)) + + @endif + @if(userCan('comment-create-all')) + + @endif + @if(userCan('comment-delete', $comment)) + + @endif +
@if ($comment->parent_id) -
+
{!! trans('entities.comment_in_reply_to', ['commentId' => '#'.$comment->parent_id.'']) !!}
@endif -
+
+ {!! $comment->html !!}
@if(userCan('comment-update', $comment)) -