1
0
Fork 0
forked from mirror/pixelfed
pixelfed/resources/views/profile/partial/user-info.blade.php

93 lines
4.4 KiB
PHP
Raw Normal View History

2018-06-06 14:52:27 +00:00
<div class="bg-white py-5 border-bottom">
2018-06-03 16:07:18 +00:00
<div class="container">
<div class="row">
<div class="col-12 col-md-4 d-flex">
<div class="profile-avatar mx-auto">
<img class="rounded-circle box-shadow" src="{{$user->avatarUrl()}}" width="172px" height="172px">
2018-06-03 16:07:18 +00:00
</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">
2018-06-03 16:07:18 +00:00
<span class="font-weight-ultralight h1">{{$user->username}}</span>
@if($is_admin == true)
<span class="pl-4">
<span class="btn btn-outline-danger font-weight-bold py-0">ADMIN</span>
</span>
@endif
2018-06-03 16:07:18 +00:00
@if($owner == true)
<span class="pl-4">
<a class="fas fa-cog fa-lg text-muted" href="{{route('settings')}}"></a>
2018-06-03 16:07:18 +00:00
</span>
2018-09-03 04:02:38 +00:00
@elseif (Auth::check() && $is_following == true)
2018-06-03 16:07:18 +00:00
<span class="pl-4">
<form class="follow-form" method="post" action="/i/follow" style="display: inline;" data-id="{{$user->id}}" data-action="unfollow">
@csrf
<input type="hidden" name="item" value="{{$user->id}}">
<button class="btn btn-outline-secondary font-weight-bold px-4 py-0" type="submit">Unfollow</button>
</form>
</span>
2018-09-03 04:02:38 +00:00
@elseif (Auth::check() && $is_following == false)
2018-06-03 16:07:18 +00:00
<span class="pl-4">
<form class="follow-form" method="post" action="/i/follow" style="display: inline;" data-id="{{$user->id}}" data-action="follow">
@csrf
<input type="hidden" name="item" value="{{$user->id}}">
<button class="btn btn-primary font-weight-bold px-4 py-0" type="submit">Follow</button>
</form>
</span>
@endif
{{-- <span class="pl-4">
2018-06-03 16:07:18 +00:00
<div class="dropdown">
<button class="btn btn-link text-muted dropdown-toggle py-0" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="text-decoration: none;">
<i class="fas fa-ellipsis-v"></i>
2018-06-03 16:07:18 +00:00
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item font-weight-bold" href="#">Report User</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item font-weight-bold" href="#">Mute User</a>
<a class="dropdown-item font-weight-bold" href="#">Block User</a>
<a class="dropdown-item font-weight-bold mute-users" href="#">Mute User & User Followers</a>
<a class="dropdown-item font-weight-bold" href="#">Block User & User Followers</a>
2018-06-03 16:07:18 +00:00
</div>
</div>
</span>
--}}
2018-06-03 16:07:18 +00:00
</div>
<div class="profile-stats pb-3 d-inline-flex lead">
<div class="font-weight-light pr-5">
2018-06-03 18:44:25 +00:00
<a class="text-dark" href="{{$user->url()}}">
<span class="font-weight-bold">{{$user->statusCount()}}</span>
2018-06-03 16:07:18 +00:00
Posts
2018-06-03 18:44:25 +00:00
</a>
2018-06-03 16:07:18 +00:00
</div>
@if($settings->show_profile_follower_count)
2018-06-03 16:07:18 +00:00
<div class="font-weight-light pr-5">
<a class="text-dark" href="{{$user->url('/followers')}}">
<span class="font-weight-bold">{{$user->followerCount(true)}}</span>
Followers
</a>
</div>
@endif
@if($settings->show_profile_following_count)
2018-06-03 16:07:18 +00:00
<div class="font-weight-light pr-5">
<a class="text-dark" href="{{$user->url('/following')}}">
<span class="font-weight-bold">{{$user->followingCount(true)}}</span>
Following
</a>
</div>
@endif
2018-06-03 16:07:18 +00:00
</div>
<p class="lead mb-0 d-flex align-items-center">
<span class="font-weight-bold pr-3">{{$user->name}}</span>
2018-06-03 16:07:18 +00:00
@if($user->remote_url)
<span class="btn btn-outline-secondary btn-sm py-0">REMOTE PROFILE</span>
2018-06-03 16:07:18 +00:00
@endif
</p>
<div class="mb-0 lead" v-pre>{!!str_limit($user->bio, 127)!!}</div>
2018-09-11 15:31:02 +00:00
<p class="mb-0"><a href="{{$user->website}}" class="font-weight-bold" rel="me external nofollow noopener" target="_blank">{{str_limit($user->website, 30)}}</a></p>
2018-06-03 16:07:18 +00:00
</div>
</div>
</div>
</div>
</div>