Skip to content

Commit

Permalink
Add link to currently pending join team
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Jan 29, 2025
1 parent 684907d commit 849069f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/views/layout/_popup_user.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@php
$currentUser = Auth::user();
$currentUserUrl = route('users.show', ['user' => $currentUser->getKey()]);
$teamId = $currentUser->team?->getKey() ?? $currentUser->teamApplication?->team_id;
@endphp
<div
class="simple-menu simple-menu--nav2 js-click-menu js-nav2--centered-popup"
Expand All @@ -31,8 +33,8 @@ class="simple-menu__item"
{{ osu_trans('layout.popup_user.links.profile') }}
</a>

@if (($team = $currentUser->team) !== null)
<a class="simple-menu__item" href="{{ route('teams.show', $team) }}">
@if ($teamId !== null)
<a class="simple-menu__item" href="{{ route('teams.show', ['team' => $teamId]) }}">
{{ osu_trans('layout.popup_user.links.team') }}
</a>
@endif
Expand Down

0 comments on commit 849069f

Please sign in to comment.