1
0
Fork 0
pixelfed/resources/views/status/comments.blade.php

41 lines
1.8 KiB
PHP
Raw Normal View History

2018-08-10 02:03:33 +00:00
@extends('layouts.app')
@section('content')
<div class="container px-0 mt-md-4">
<div class="col-12 col-md-8 offset-md-2">
2019-09-20 02:26:46 +00:00
<div class="card shadow-none border">
2018-08-10 02:03:33 +00:00
<div class="card-body">
<p class="mb-0">
2019-09-20 02:26:46 +00:00
<img class="img-thumbnail mr-2" src="{{$profile->avatarUrl()}}" width="24px" height="24px" style="border-radius:24px;">
2018-08-10 02:03:33 +00:00
<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>
</p>
2019-09-20 02:26:46 +00:00
<p class="text-center font-weight-bold text-muted small text-uppercase pt-3">All Comments</p>
2018-08-10 02:03:33 +00:00
<div class="comments">
@foreach($replies as $item)
<p class="mb-2">
<span class="font-weight-bold pr-1">
2019-09-20 02:26:46 +00:00
<img class="img-thumbnail mr-2" src="{{$item->profile->avatarUrl()}}" width="24px" height="24px" style="border-radius:24px;">
2018-08-10 02:03:33 +00:00
<bdi><a class="text-dark" href="{{$item->profile->url()}}">{{ str_limit($item->profile->username, 15)}}</a></bdi>
</span>
<span class="comment-text">
{!! $item->rendered ?? e($item->caption) !!}
<a href="{{$item->url()}}" class="text-dark small font-weight-bold float-right pl-2">
{{$item->created_at->diffForHumans(null, true, true ,true)}}
</a>
</span>
</p>
@endforeach
2019-09-20 02:26:46 +00:00
2018-08-10 02:03:33 +00:00
</div>
</div>
</div>
2019-09-20 02:26:46 +00:00
<div class="mt-2 d-flex justify-content-center">
{{ $replies->links() }}
</div>
2018-08-10 02:03:33 +00:00
</div>
</div>
@endsection