the browser-facing portion of osu!
at master 26 lines 843 B view raw
1{{-- 2 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 3 See the LICENCE file in the repository root for full licence text. 4--}} 5@php 6 $class = 'avatar 7 avatar--nav2 8 js-current-user-avatar 9 js-click-menu 10 js-user-login--menu 11 js-user-header'; 12@endphp 13@if (Auth::user() === null) 14 <button 15 class="{{ $class }} avatar--guest" 16 data-click-menu-target="nav2-login-box" 17 title="{{ osu_trans('users.anonymous.login_link') }}" 18 ></button> 19@else 20 <a 21 class="{{ $class }} {{ Auth::user()->isRestricted() ? 'avatar--restricted' : '' }}" 22 data-click-menu-target="nav2-user-popup" 23 href="{{ route('users.show', Auth::user()) }}" 24 {!! background_image(Auth::user()->user_avatar) !!} 25 ></a> 26@endif