Update nav

This commit is contained in:
Daniel Supernault 2022-01-25 01:58:20 -07:00
parent fea2faaba8
commit d1ff86ee34
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -1,6 +1,6 @@
<nav class="navbar navbar-expand navbar-light navbar-laravel shadow-none border-bottom sticky-top py-1"> <nav class="navbar navbar-expand navbar-light navbar-laravel shadow-none border-bottom sticky-top py-1">
<div class="container"> <div class="container">
<a class="navbar-brand d-flex align-items-center" href="{{ route('timeline.personal') }}" title="Logo"> <a class="navbar-brand d-flex align-items-center" href="/" title="Logo">
<img src="/img/pixelfed-icon-color.svg" height="30px" class="px-2" loading="eager" alt="Pixelfed logo"> <img src="/img/pixelfed-icon-color.svg" height="30px" class="px-2" loading="eager" alt="Pixelfed logo">
<span class="font-weight-bold mb-0 d-none d-sm-block" style="font-size:20px;">{{ config_cache('app.name') }}</span> <span class="font-weight-bold mb-0 d-none d-sm-block" style="font-size:20px;">{{ config_cache('app.name') }}</span>
</a> </a>
@ -18,13 +18,13 @@
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<li> <li>
<a class="nav-link font-weight-bold text-dark" href="{{ route('login') }}" title="Login"> <a class="nav-link font-weight-bold text-dark" href="/login" title="Login">
{{ __('Login') }} {{ __('Login') }}
</a> </a>
</li> </li>
@if(config_cache('pixelfed.open_registration') && in_array(config_cache('system.user_mode'), ['default', 'admin'])) @if(config_cache('pixelfed.open_registration') && in_array(config_cache('system.user_mode'), ['default', 'admin']))
<li> <li>
<a class="ml-3 nav-link font-weight-bold text-dark" href="{{ route('register') }}" title="Register"> <a class="ml-3 nav-link font-weight-bold text-dark" href="/register" title="Register">
{{ __('Register') }} {{ __('Register') }}
</a> </a>
</li> </li>
@ -71,13 +71,13 @@
</span> </span>
My Feed My Feed
</a> </a>
<a class="dropdown-item lead" href="{{route('timeline.public')}}"> <a class="dropdown-item lead" href="/i/web/timeline/local">
<span style="width: 50px;margin-right:14px;"> <span style="width: 50px;margin-right:14px;">
<span class="fal fa-stream text-lighter fa-lg"></span> <span class="fal fa-stream text-lighter fa-lg"></span>
</span> </span>
Public Feed Public Feed
</a> </a>
<a class="dropdown-item lead" href="{{route('timeline.network')}}"> <a class="dropdown-item lead" href="/i/web/timeline/global">
<span style="width: 50px;margin-right:14px;"> <span style="width: 50px;margin-right:14px;">
<span class="fal fa-globe text-lighter fa-lg"></span> <span class="fal fa-globe text-lighter fa-lg"></span>
</span> </span>
@ -90,7 +90,7 @@
</span> </span>
Home Home
</a> </a>
<a class="dropdown-item lead" href="{{route('timeline.public')}}"> <a class="dropdown-item lead" href="/i/web/timeline/local">
<span style="width: 50px;margin-right:14px;"> <span style="width: 50px;margin-right:14px;">
<span class="fas fa-stream text-lighter fa-lg"></span> <span class="fas fa-stream text-lighter fa-lg"></span>
</span> </span>
@ -98,12 +98,13 @@
</a> </a>
@endif @endif
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<a class="dropdown-item lead" href="{{route('discover')}}"> <a class="dropdown-item lead" href="/i/web/discover">
<span style="width: 50px;margin-right:14px;"> <span style="width: 50px;margin-right:14px;">
<span class="fal fa-compass text-lighter fa-lg"></span> <span class="fal fa-compass text-lighter fa-lg"></span>
</span> </span>
{{__('navmenu.discover')}} {{__('navmenu.discover')}}
</a> </a>
@if(config_cache('instance.stories.enabled')) @if(config_cache('instance.stories.enabled'))
<a class="dropdown-item lead" href="/i/stories/new"> <a class="dropdown-item lead" href="/i/stories/new">
<span style="width: 50px;margin-right:14px;"> <span style="width: 50px;margin-right:14px;">
@ -119,14 +120,14 @@
</span> </span>
{{__('navmenu.myProfile')}} {{__('navmenu.myProfile')}}
</a> </a>
<a class="dropdown-item lead" href="{{route('settings')}}"> <a class="dropdown-item lead" href="/settings/home">
<span style="width: 50px;margin-right:14px;"> <span style="width: 50px;margin-right:14px;">
<span class="fal fa-cog text-lighter fa-lg"></span> <span class="fal fa-cog text-lighter fa-lg"></span>
</span> </span>
{{__('navmenu.settings')}} {{__('navmenu.settings')}}
</a> </a>
@if(Auth::user()->is_admin == true) @if(Auth::user()->is_admin == true)
<a class="dropdown-item lead" href="{{ route('admin.home') }}"> <a class="dropdown-item lead" href="/i/admin/dashboard">
<span style="width: 50px;margin-right:14px;"> <span style="width: 50px;margin-right:14px;">
<span class="fal fa-shield-alt text-lighter fa-lg"></span> <span class="fal fa-shield-alt text-lighter fa-lg"></span>
</span> </span>
@ -134,7 +135,7 @@
</a> </a>
@endif @endif
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<a class="dropdown-item lead" href="{{ route('logout') }}" <a class="dropdown-item lead" href="/logout"
onclick="event.preventDefault(); onclick="event.preventDefault();
document.getElementById('logout-form').submit();"> document.getElementById('logout-form').submit();">
<span style="width: 50px;margin-right:14px;" class="text-lighter"> <span style="width: 50px;margin-right:14px;" class="text-lighter">
@ -143,7 +144,7 @@
<span class="text-lighter">{{ __('navmenu.logout') }}</span> <span class="text-lighter">{{ __('navmenu.logout') }}</span>
</a> </a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> <form id="logout-form" action="/logout" method="POST" style="display: none;">
@csrf @csrf
</form> </form>
</div> </div>