いいねタブが常に表示されるように変更
This commit is contained in:
parent
ddac533539
commit
566d288395
@ -185,10 +185,6 @@ SQL
|
||||
abort(404);
|
||||
}
|
||||
|
||||
if (!$user->isMe()) {
|
||||
abort(403);
|
||||
}
|
||||
|
||||
$likes = $user->likes()
|
||||
->orderBy('created_at', 'desc')
|
||||
->with('ejaculation.user', 'ejaculation.tags')
|
||||
|
@ -20,11 +20,13 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {{ Route::currentRouteName() === 'user.okazu' ? 'active' : '' }}" href="{{ route('user.okazu', ['name' => $user->name]) }}">オカズ</a>
|
||||
</li>
|
||||
@if ($user->isMe())
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {{ Route::currentRouteName() === 'user.likes' ? 'active' : '' }}" href="{{ route('user.likes', ['name' => $user->name]) }}">いいね <span class="badge badge-primary">{{ $user->likes()->count() }}</span></a>
|
||||
</li>
|
||||
@endif
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {{ Route::currentRouteName() === 'user.likes' ? 'active' : '' }}" href="{{ route('user.likes', ['name' => $user->name]) }}">いいね
|
||||
@if ($user->isMe() || !($user->is_protected || $user->private_likes))
|
||||
<span class="badge badge-primary">{{ $user->likes()->count() }}</span>
|
||||
@endif
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
@yield('tab-content')
|
||||
|
@ -3,7 +3,7 @@
|
||||
@section('title', $user->display_name . ' (@' . $user->name . ') さんがいいねしたチェックイン')
|
||||
|
||||
@section('tab-content')
|
||||
@if ($user->is_protected && !$user->isMe())
|
||||
@if (($user->is_protected || $user->private_likes) && !$user->isMe())
|
||||
<p class="mt-4">
|
||||
<span class="oi oi-lock-locked"></span> このユーザはいいね一覧を公開していません。
|
||||
</p>
|
||||
|
Loading…
Reference in New Issue
Block a user