1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00

Update nav

This commit is contained in:
Daniel Supernault 2021-07-20 21:52:49 -06:00
parent 32268efbc9
commit f392fa4ed4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -22,7 +22,7 @@
{{ __('Login') }}
</a>
</li>
@if(config_cache('pixelfed.open_registration') && config('instance.restricted.enabled') == false)
@if(config_cache('pixelfed.open_registration') && in_array(config_cache('system.user_mode'), ['default', 'admin']))
<li>
<a class="ml-3 nav-link font-weight-bold text-dark" href="{{ route('register') }}" title="Register">
{{ __('Register') }}
@ -38,12 +38,6 @@
<span class="sr-only">Home</span>
</a>
</li>
<li class="nav-item px-md-2 d-none d-md-block">
<div class="nav-link font-weight-bold text-dark cursor-pointer" title="Compose" data-toggle="tooltip" data-placement="bottom" onclick="App.util.compose.post()">
<i class="far fa-plus-square fa-lg"></i>
<span class="sr-only">Compose</span>
</div>
</li>
<li class="nav-item px-md-2">
<a class="nav-link font-weight-bold text-dark" href="/account/direct" title="Direct" data-toggle="tooltip" data-placement="bottom">
<i class="far fa-comment-dots fa-lg"></i>
@ -56,6 +50,11 @@
<span class="sr-only">Notifications</span>
</a>
</li>
<li class="nav-item px-md-2 d-none d-md-block">
<div class="nav-link btn btn-primary btn-sm py-1 font-weight-bold text-white" title="Compose" data-toggle="tooltip" data-placement="bottom" onclick="App.util.compose.post()">
<span>New Post</span>
</div>
</li>
<li class="nav-item dropdown ml-2">
<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">
<i class="far fa-user fa-lg text-dark"></i>