From 08a14877d410ffa1855cf6e7de9ce623b44ff81d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 9 Aug 2018 22:29:56 -0600 Subject: [PATCH] Update status view --- resources/views/status/show.blade.php | 72 ++++++++++++++++++--------- 1 file changed, 48 insertions(+), 24 deletions(-) diff --git a/resources/views/status/show.blade.php b/resources/views/status/show.blade.php index 56c7bd580..7f711f240 100644 --- a/resources/views/status/show.blade.php +++ b/resources/views/status/show.blade.php @@ -18,12 +18,13 @@
@if($status->is_nsfw && $status->media_count == 1)
-

-

NSFW / Hidden Image - - - -

+ +

CW / NSFW / Hidden Media

+

(click to show)

+
+ + +
@elseif(!$status->is_nsfw && $status->media_count == 1)
@@ -68,19 +69,43 @@ {{$user->username}}
+
+ +

{{$status->profile->username}} - {!! $status->rendered ?? e($status->caption) !!} + {!! $status->rendered ?? e($status->caption) !!}

+

View all comments

- @foreach($status->comments->reverse()->take(10) as $item) -

- {{$item->profile->username}} - {!! $item->rendered ?? e($item->caption) !!} {{$item->created_at->diffForHumans(null, true, true ,true)}} + @foreach($replies as $item) +

+ {{ str_limit($item->profile->username, 15)}} + {!! $item->rendered ?? e($item->caption) !!} {{$item->created_at->diffForHumans(null, true, true ,true)}}

@endforeach
@@ -88,32 +113,30 @@
-

- @if(Auth::check()) - @if(Auth::user()->profile->id === $status->profile->id || Auth::user()->is_admin == true) -
+ @csrf - -
- @endif + @endif -
+ @csrf
@@ -132,7 +155,8 @@
@csrf - + +
@@ -144,5 +168,5 @@ @push('meta') - + @endpush