2019-08-30 01:15:58 +00:00
|
|
|
<nav class="navbar navbar-expand navbar-light navbar-laravel shadow-none border-bottom border sticky-top py-1">
|
2018-05-30 02:42:40 +00:00
|
|
|
<div class="container">
|
2018-08-10 04:50:38 +00:00
|
|
|
<a class="navbar-brand d-flex align-items-center" href="{{ route('timeline.personal') }}" title="Logo">
|
2019-08-30 01:15:58 +00:00
|
|
|
<img src="/img/pixelfed-icon-color.svg" height="30px" class="px-2" loading="eager">
|
2018-12-16 08:59:30 +00:00
|
|
|
<span class="font-weight-bold mb-0 d-none d-sm-block" style="font-size:20px;">{{ config('app.name', 'pixelfed') }}</span>
|
2018-05-30 02:42:40 +00:00
|
|
|
</a>
|
|
|
|
|
2019-08-30 01:15:58 +00:00
|
|
|
<div class="collapse navbar-collapse">
|
|
|
|
@auth
|
|
|
|
<ul class="navbar-nav d-none d-md-block mx-auto">
|
2019-04-02 03:47:53 +00:00
|
|
|
<form class="form-inline search-bar" method="get" action="/i/results">
|
2019-08-30 01:15:58 +00:00
|
|
|
<input class="form-control form-control-sm" name="q" placeholder="{{__('navmenu.search')}}" aria-label="search" autocomplete="off" required style="line-height: 0.6;width:200px">
|
2018-05-30 02:42:40 +00:00
|
|
|
</form>
|
|
|
|
</ul>
|
2019-08-30 01:15:58 +00:00
|
|
|
@endauth
|
2018-05-30 02:42:40 +00:00
|
|
|
|
2019-08-30 01:15:58 +00:00
|
|
|
@guest
|
2019-08-17 07:48:47 +00:00
|
|
|
|
2019-03-05 02:10:47 +00:00
|
|
|
<ul class="navbar-nav ml-auto">
|
2019-08-30 01:15:58 +00:00
|
|
|
<li>
|
|
|
|
<a class="nav-link font-weight-bold text-primary" href="{{ route('login') }}" title="Login">
|
|
|
|
{{ __('Login') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@if(config('pixelfed.open_registration'))
|
|
|
|
<li>
|
|
|
|
<a class="nav-link font-weight-bold" href="{{ route('register') }}" title="Register">
|
|
|
|
{{ __('Register') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
<div class="ml-auto">
|
|
|
|
<ul class="navbar-nav">
|
2019-03-17 07:29:06 +00:00
|
|
|
<div class="d-none d-md-block">
|
|
|
|
<li class="nav-item px-md-2">
|
2019-08-30 01:15:58 +00:00
|
|
|
<a class="nav-link font-weight-bold text-muted" href="/" title="Home Timeline" data-toggle="tooltip" data-placement="bottom">
|
2019-03-17 07:29:06 +00:00
|
|
|
<i class="fas fa-home fa-lg"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</div>
|
2019-08-30 01:15:58 +00:00
|
|
|
<li class="d-block d-md-none"></li>
|
2019-03-04 19:43:25 +00:00
|
|
|
<div class="d-none d-md-block">
|
2019-03-17 07:29:06 +00:00
|
|
|
<li class="nav-item px-md-2">
|
2019-08-30 01:15:58 +00:00
|
|
|
<a class="nav-link font-weight-bold text-muted" href="{{route('discover')}}" title="Discover" data-toggle="tooltip" data-placement="bottom">
|
2019-03-17 07:29:06 +00:00
|
|
|
<i class="far fa-compass fa-lg"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</div>
|
2019-08-30 01:15:58 +00:00
|
|
|
<li class="nav-item dropdown ml-2">
|
2018-08-10 04:50:38 +00:00
|
|
|
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="User Menu" data-toggle="tooltip" data-placement="bottom">
|
2019-08-30 01:15:58 +00:00
|
|
|
<i class="far fa-user fa-lg text-muted"></i>
|
2018-05-30 02:42:40 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
2019-12-06 04:10:28 +00:00
|
|
|
<div class="dropdown-item font-weight-bold cursor-pointer" onclick="App.util.compose.post()">
|
|
|
|
<span class="fas fa-camera-retro pr-1"></span>
|
|
|
|
{{__('navmenu.composePost')}}
|
|
|
|
</div>
|
|
|
|
<div class="dropdown-divider"></div>
|
2019-08-30 01:15:58 +00:00
|
|
|
<a class="dropdown-item font-weight-bold" href="/i/me">
|
|
|
|
<span class="far fa-user pr-1"></span>
|
|
|
|
{{__('navmenu.myProfile')}}
|
2018-06-09 04:39:06 +00:00
|
|
|
</a>
|
2019-05-14 03:22:43 +00:00
|
|
|
<a class="d-block d-md-none dropdown-item font-weight-bold" href="{{route('discover')}}">
|
|
|
|
<span class="far fa-compass pr-1"></span>
|
|
|
|
{{__('navmenu.discover')}}
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-item font-weight-bold" href="{{route('notifications')}}">
|
|
|
|
<span class="far fa-bell pr-1"></span>
|
|
|
|
Notifications
|
|
|
|
</a>
|
2018-05-30 02:42:40 +00:00
|
|
|
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
|
2019-03-17 07:32:19 +00:00
|
|
|
<span class="far fa-map pr-1"></span>
|
2018-06-09 04:39:06 +00:00
|
|
|
{{__('navmenu.publicTimeline')}}
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-item font-weight-bold" href="{{route('settings')}}">
|
|
|
|
<span class="fas fa-cog pr-1"></span>
|
|
|
|
{{__('navmenu.settings')}}
|
|
|
|
</a>
|
|
|
|
@if(Auth::user()->is_admin == true)
|
|
|
|
<a class="dropdown-item font-weight-bold" href="{{ route('admin.home') }}">
|
|
|
|
<span class="fas fa-cogs pr-1"></span>
|
|
|
|
{{__('navmenu.admin')}}
|
|
|
|
</a>
|
|
|
|
@endif
|
2019-12-06 04:10:28 +00:00
|
|
|
<div class="dropdown-divider"></div>
|
2018-05-30 02:42:40 +00:00
|
|
|
<a class="dropdown-item font-weight-bold" href="{{ route('logout') }}"
|
|
|
|
onclick="event.preventDefault();
|
|
|
|
document.getElementById('logout-form').submit();">
|
2018-06-09 04:39:06 +00:00
|
|
|
<span class="fas fa-sign-out-alt pr-1"></span>
|
|
|
|
{{ __('navmenu.logout') }}
|
2018-05-30 02:42:40 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
|
|
|
@csrf
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</li>
|
2019-08-30 01:15:58 +00:00
|
|
|
</div>
|
|
|
|
@endguest
|
2018-05-30 02:42:40 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-04 19:43:25 +00:00
|
|
|
</nav>
|