Skip to content

Commit

Permalink
Merge pull request ppy#11729 from nanaya/user-popup-team
Browse files Browse the repository at this point in the history
Add link to own team from user popup menu
  • Loading branch information
notbakaneko authored Dec 12, 2024
2 parents b3b0ac3 + 9bf136d commit 027026f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/lang/en/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
'profile' => 'My Profile',
'scoring_mode_toggle' => 'Classic scoring',
'scoring_mode_toggle_tooltip' => 'Adjust score values to feel more like classic uncapped scoring',
'team' => 'My Team',
],
],

Expand Down
6 changes: 6 additions & 0 deletions resources/views/layout/_popup_user.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ 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) }}">
{{ osu_trans('layout.popup_user.links.team') }}
</a>
@endif

<a class="simple-menu__item" href="{{ route('friends.index') }}">
{{ osu_trans('layout.popup_user.links.friends') }}
</a>
Expand Down

0 comments on commit 027026f

Please sign in to comment.