From d03c762146f9c5651ecae2d21159ad8f2550af5e Mon Sep 17 00:00:00 2001 From: Stasiek Michalski Date: Sun, 3 Jun 2018 18:19:13 +0200 Subject: [PATCH] Adapt show to new partial --- resources/views/profile/show.blade.php | 151 +++++++------------------ 1 file changed, 38 insertions(+), 113 deletions(-) diff --git a/resources/views/profile/show.blade.php b/resources/views/profile/show.blade.php index c2206387a..d1115ffee 100644 --- a/resources/views/profile/show.blade.php +++ b/resources/views/profile/show.blade.php @@ -2,134 +2,59 @@ @section('content') +@include('profile.partial.user-info') + +@if($owner == true) +
+ +
+@endif
- -
-
-
- -
-
-
-
-
- {{$user->username}} - @if($owner == true) - - - - @elseif ($following == true) - - - - @elseif ($following == false) - - - - @endif - {{-- TODO: Implement action dropdown - - - --}} -
-
-
- {{$user->statuses()->whereNull('in_reply_to_id')->count()}} - Posts -
- - -
-

- {{$user->name}} - @if($user->remote_url) - REMOTE PROFILE - @endif - {{$user->bio}} -

-
-
-
-
- @if($owner == true) -
- -
- @endif - @if($owner && request()->is('*/saved'))

{{__('profile.savedWarning')}}

@endif - @if($timeline->count() > 0) - @foreach($timeline as $status) -
- - + @endforeach @else -
-
-
-
-

{{ __('profile.emptyTimeline') }}

-
+
+
+
+
+

{{ __('profile.emptyTimeline') }}

+
@endif
-
@endsection