From 9def1e6c9b5e839aa76ee836bda26f28cee17c63 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 8 Nov 2018 22:45:37 -0700 Subject: [PATCH] Update timeline status template --- resources/views/status/template.blade.php | 42 ++++++++++------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/resources/views/status/template.blade.php b/resources/views/status/template.blade.php index 3fd21597e..f9f66f23f 100644 --- a/resources/views/status/template.blade.php +++ b/resources/views/status/template.blade.php @@ -1,4 +1,4 @@ -
+
@@ -12,7 +12,7 @@
- @if($item->is_nsfw) -
- -

Content Warning: This may contain potentially sensitive content.

-

(click to show)

-
- - - -
- @else - - @if($loop->index < 2) - - @else - - @endif - - @endif + @php($status = $item) + @switch($status->viewType()) + @case('image') + @include('status.timeline.photo') + @break + @case('album') + @include('status.timeline.album') + @break + @case('video') + @include('status.timeline.video') + @break + @case('video-album') + @include('status.timeline.video-album') + @break + @endswitch