Explorar el Código

Adapt following to partial

Stasiek Michalski hace 7 años
padre
commit
f09acf51b6
Se han modificado 1 ficheros con 2 adiciones y 39 borrados
  1. 2 39
      resources/views/profile/followers.blade.php

+ 2 - 39
resources/views/profile/followers.blade.php

@@ -2,46 +2,9 @@
 
 @section('content')
 
-<div class="container following-page" style="min-height: 60vh;">
-
-  <div class="profile-header row my-5">
-    <div class="col-12 col-md-4 d-flex">
-      <div class="profile-avatar mx-auto">
-        <img class="img-thumbnail" src="{{$profile->avatarUrl()}}" style="border-radius:100%;" width="172px">
-      </div>
-    </div>
-    <div class="col-12 col-md-8 d-flex align-items-center">
-      <div class="profile-details">
-        <div class="username-bar pb-2 d-flex align-items-center">
-          <span class="font-weight-ultralight h1">{{$profile->username}}</span>
-        </div>
-        <div class="profile-stats pb-3 d-inline-flex lead">
-          <div class="font-weight-light pr-5">
-            <a class="text-dark" href="{{$profile->url()}}">
-              <span class="font-weight-bold">{{$profile->statuses()->whereNull('in_reply_to_id')->count()}}</span> 
-              Posts
-            </a>
-          </div>
-          <div class="font-weight-light pr-5">
-            <a class="text-dark" href="{{$profile->url('/followers')}}">
-              <span class="font-weight-bold">{{$profile->followerCount(true)}}</span> 
-              Followers
-            </a>
-          </div>
-          <div class="font-weight-light pr-5">
-            <a class="text-dark" href="{{$profile->url('/following')}}">
-              <span class="font-weight-bold">{{$profile->followingCount(true)}}</span> 
-              Following
-            </a>
-          </div>
-        </div>
-        <p class="lead font-weight-bold">
-          {{$profile->name}}
-        </p>
-      </div>
-    </div>
-  </div>
+@include('profile.partial.user-info')
 
+<div class="container following-page" style="min-height: 60vh;">
   <div class="col-12 col-md-8 offset-2">
     @if($followers->count() !== 0)
     <ul class="list-group mt-4">