Merge pull request #538 from shikorism/fix/degrade-profile-stats

プロフィールページの概況が消えていたのを修正
This commit is contained in:
shibafu 2020-10-26 08:58:09 +09:00 committed by GitHub
commit ea1483a90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,14 @@
@if (Route::currentRouteName() === 'user.profile') @if (Route::currentRouteName() === 'user.profile')
@component('components.profile-bio', ['user' => $user]) @component('components.profile-bio', ['user' => $user])
@endcomponent @endcomponent
@if (!$user->is_protected || $user->isMe())
<div class="card mb-4">
<div class="card-body">
@component('components.profile-stats', ['user' => $user])
@endcomponent
</div>
</div>
@endif
@if (!empty($tags) && (!$user->is_protected || $user->isMe())) @if (!empty($tags) && (!$user->is_protected || $user->isMe()))
<div class="card mb-4"> <div class="card mb-4">
<div class="card-header"> <div class="card-header">