Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Nov 7, 2023
1 parent 39340ba commit 47ce187
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions resources/views/particles/comments/comment.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
<h6 class="m-0 me-2">{{ $comment->commenter->name }}</h6>

<div class="me-3 small opacity-50">
<a href="{{ \Illuminate\Support\Facades\URL::current() }}#comment-{{ $comment->getKey() }}" class="link-body-emphasis text-decoration-none">
<a href="{{ \Illuminate\Support\Facades\URL::current() }}#comment-{{ $comment->getKey() }}"
class="link-body-emphasis text-decoration-none">
<time datetime="{{ now()->toISOString() }}">{{ $comment->created_at->diffForHumans() }}</time>
</a>

@can('update', $comment)
·
<a href="#" data-bs-toggle="modal" data-bs-target="#comment-modal-{{ $comment->getKey() }}"
class="link-body-emphasis text-decoration-none">Редактировать
class="link-body-emphasis text-decoration-none">Редактировать
</a>
@endcan

Expand Down Expand Up @@ -69,7 +70,8 @@ class="link-body-emphasis text-decoration-none"
</div>
<div class="modal-footer">
<button type="submit"
class="btn btn-sm btn-outline-secondary text-uppercase">Обновить</button>
class="btn btn-sm btn-outline-secondary text-uppercase">Обновить
</button>
</div>
</form>
</div>
Expand Down Expand Up @@ -123,10 +125,10 @@ class="btn btn-sm btn-outline-success text-uppercase">@lang('comments::comments.
@if($grouped_comments->has($comment->getKey()))
<div class="{{ $indentationLevel <= $maxIndentationLevel ? 'ms-5' : '' }}">
@foreach($grouped_comments[$comment->getKey()] as $child)
@include('particles.comments.comment', [
'comment' => $child,
'grouped_comments' => $grouped_comments
])
@include('particles.comments.comment', [
'comment' => $child,
'grouped_comments' => $grouped_comments
])
@endforeach
</div>
@endif
Expand Down

0 comments on commit 47ce187

Please sign in to comment.