Adapt following to partial

This commit is contained in:
Stasiek Michalski 2018-06-03 18:21:54 +02:00 committed by GitHub
parent d03c762146
commit 412c3c8122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 39 deletions

View File

@ -2,46 +2,9 @@
@section('content')
@include('profile.partial.user-info')
<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>
<div class="col-12 col-md-8 offset-2">
@if($following->count() !== 0)
<ul class="list-group mt-4">