mirror of https://github.com/pixelfed/pixelfed.git
Update all comments view
This commit is contained in:
parent
f71eed823c
commit
0a5eaa3118
|
@ -5,19 +5,19 @@
|
||||||
<div class="container px-0 mt-md-4">
|
<div class="container px-0 mt-md-4">
|
||||||
<div class="col-12 col-md-8 offset-md-2">
|
<div class="col-12 col-md-8 offset-md-2">
|
||||||
|
|
||||||
<div class="card">
|
<div class="card shadow-none border">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="mb-0">
|
<p class="mb-0">
|
||||||
<img class="img-thumbnail mr-2" src="{{$user->avatarUrl()}}" width="24px" height="24px" style="border-radius:12px;">
|
<img class="img-thumbnail mr-2" src="{{$profile->avatarUrl()}}" width="24px" height="24px" style="border-radius:24px;">
|
||||||
<span class="font-weight-bold pr-1"><bdi><a class="text-dark" href="{{$status->profile->url()}}">{{ str_limit($status->profile->username, 15)}}</a></bdi></span>
|
<span class="font-weight-bold pr-1"><bdi><a class="text-dark" href="{{$status->profile->url()}}">{{ str_limit($status->profile->username, 15)}}</a></bdi></span>
|
||||||
<span class="comment-text">{!! $status->rendered ?? e($status->caption) !!} <a href="{{$status->url()}}" class="text-dark small font-weight-bold float-right pl-2">{{$status->created_at->diffForHumans(null, true, true ,true)}}</a></span>
|
<span class="comment-text">{!! $status->rendered ?? e($status->caption) !!} <a href="{{$status->url()}}" class="text-dark small font-weight-bold float-right pl-2">{{$status->created_at->diffForHumans(null, true, true ,true)}}</a></span>
|
||||||
</p>
|
</p>
|
||||||
<hr>
|
<p class="text-center font-weight-bold text-muted small text-uppercase pt-3">All Comments</p>
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
@foreach($replies as $item)
|
@foreach($replies as $item)
|
||||||
<p class="mb-2">
|
<p class="mb-2">
|
||||||
<span class="font-weight-bold pr-1">
|
<span class="font-weight-bold pr-1">
|
||||||
<img class="img-thumbnail mr-2" src="{{$item->profile->avatarUrl()}}" width="24px" height="24px" style="border-radius:12px;">
|
<img class="img-thumbnail mr-2" src="{{$item->profile->avatarUrl()}}" width="24px" height="24px" style="border-radius:24px;">
|
||||||
<bdi><a class="text-dark" href="{{$item->profile->url()}}">{{ str_limit($item->profile->username, 15)}}</a></bdi>
|
<bdi><a class="text-dark" href="{{$item->profile->url()}}">{{ str_limit($item->profile->username, 15)}}</a></bdi>
|
||||||
</span>
|
</span>
|
||||||
<span class="comment-text">
|
<span class="comment-text">
|
||||||
|
@ -28,9 +28,13 @@
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mt-2 d-flex justify-content-center">
|
||||||
|
{{ $replies->links() }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue