fix - show status on friendlist
This commit is contained in:
parent
fdd595e3a9
commit
2049a60734
|
|
@ -4,16 +4,16 @@
|
|||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1 id="usernameframe">Friends</h1>
|
||||
<h1 id="usernameframe">Friends ({{ count($userFriends) }})</h1>
|
||||
<a href="#" class="tab_selected">All Friends</a>
|
||||
<a href="{{ route('requests') }}" class="tab">Pending Requests ({{ count(Auth::user()->getFriendRequests()) }})</a>
|
||||
<br>
|
||||
<!--
|
||||
<form method="GET" action="{{ route('friends') }}">
|
||||
<p><input type="text" id="q" name="q" placeholder="Enter a Username..." value="{{ request()->q }}">
|
||||
<button class="greybutton" type="submit">Search</button>
|
||||
</p>
|
||||
</form>-->
|
||||
<form method="GET" action="{{ route('friends') }}">
|
||||
<p><input type="text" id="q" name="q" placeholder="Enter a Username..." value="{{ request()->q }}">
|
||||
<button class="greybutton" type="submit">Search</button>
|
||||
</p>
|
||||
</form>-->
|
||||
<br>
|
||||
<div class="content_special" id="FriendsContainer" style="flex-wrap: wrap;">
|
||||
@foreach ($userFriends as $user)
|
||||
|
|
@ -24,7 +24,11 @@
|
|||
</div>
|
||||
<div id="FriendsContainerBox1TextContainer">
|
||||
<a href="{{ route('profile', $user->id) }}" id="FeedContainerBox1Username">{{ $user->name }}</a>
|
||||
<p>"I'm new to ARCHBLOX!"</p>
|
||||
@if (!empty($user->feedposts->last()->status))
|
||||
<p>"{{ $user->feedposts->last()->status }}"</p>
|
||||
@else
|
||||
<p>"I'm new to ARCHBLOX!"</p>
|
||||
@endif
|
||||
@if (Cache::has('is_online_' . $user->id))
|
||||
<strong id="onlinestatus" class="onlinestatus_website">Website</strong>
|
||||
@else
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@
|
|||
</div>
|
||||
<div id="FriendsContainerBox1TextContainer">
|
||||
<a href="{{ route('profile', $friend->id) }}" id="FeedContainerBox1Username">{{ $friend->name }}</a>
|
||||
<p>"I'm new to ARCHBLOX!"</p>
|
||||
@if (!empty($friend->feedposts->last()->status))
|
||||
<p>"{{ $friend->feedposts->last()->status }}"</p>
|
||||
@else
|
||||
<p>"I'm new to ARCHBLOX!"</p>
|
||||
@endif
|
||||
@if (Cache::has('is_online_' . $friend->id))
|
||||
<strong id="onlinestatus" class="onlinestatus_website">Website</strong>
|
||||
@else
|
||||
|
|
|
|||
Loading…
Reference in New Issue