From 2eca670e11fd16e398fcf851ddb6f276f453e607 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 9 Dec 2020 22:46:31 -0700 Subject: [PATCH] Update reply/comment view, improve layout and include child reply --- resources/views/status/reply.blade.php | 100 ++++++++++++++++++++----- 1 file changed, 81 insertions(+), 19 deletions(-) diff --git a/resources/views/status/reply.blade.php b/resources/views/status/reply.blade.php index 1a886faf2..f59df58da 100644 --- a/resources/views/status/reply.blade.php +++ b/resources/views/status/reply.blade.php @@ -4,27 +4,62 @@
-
-
+
+ @if($status->parent()->parent()) +
- + @if($status->parent()->parent()->media()->count()) + + @endif
-
-
- - {{$status->parent()->profile->username}} -
-
- -
-
-

{{ str_limit($status->parent()->caption, 125) }}

+
+ +
+ {{$status->parent()->parent()->profile->username}} +
+

{!!$status->parent()->parent()->rendered!!}

+
+ +
+ +
-
+ @endif +
+
+ @if($status->parent()->media()->count()) + + @endif +
+
+
+ +
+ {{$status->parent()->profile->username}} +
+

{!!$status->parent()->rendered!!}

+
+ +
+ +
+
+
+
+
+
@if($status->is_nsfw)
@@ -34,8 +69,8 @@
{{$status->profile->username}}
-

{!! $status->rendered !!}

-
+

{!! $status->rendered !!}

+
{{$status->created_at->diffForHumans()}} @@ -48,8 +83,8 @@
{{$status->profile->username}}
-

{!! $status->rendered !!}

-
+

{!! $status->rendered !!}

+ @endif
+ @if($status->comments->count()) +
+
+ @if($status->comments()->first()->media()->count()) + + @endif +
+
+
+ +
+ {{$status->comments()->first()->profile->username}} +
+

{!!$status->comments()->first()->rendered!!}

+
+ +
+ +
+
+
+
+
+ @endif
@@ -108,7 +171,6 @@ @endpush @push('scripts') -