mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 16:24:29 +00:00
parent
9c072482a5
commit
5b8a4dfefd
2 changed files with 44 additions and 14 deletions
13
resources/lang/en/navmenu.php
Normal file
13
resources/lang/en/navmenu.php
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
'viewMyProfile' => 'View my profile',
|
||||||
|
'myTimeline' => 'My Timeline',
|
||||||
|
'publicTimeline' => 'Public Timeline',
|
||||||
|
'remoteFollow' => 'Remote Follow',
|
||||||
|
'settings' => 'Settings',
|
||||||
|
'admin' => 'Admin',
|
||||||
|
'logout' => 'Logout',
|
||||||
|
|
||||||
|
];
|
|
@ -18,37 +18,54 @@
|
||||||
<li><a class="nav-link font-weight-bold" href="{{ route('register') }}">{{ __('Register') }}</a></li>
|
<li><a class="nav-link font-weight-bold" href="{{ route('register') }}">{{ __('Register') }}</a></li>
|
||||||
@else
|
@else
|
||||||
<li class="nav-item px-2">
|
<li class="nav-item px-2">
|
||||||
<a class="nav-link" href="{{route('discover')}}" title="Discover"><i class="lead icon-compass"></i></a>
|
<a class="nav-link" href="{{route('discover')}}" title="Discover"><i class="far fa-compass fa-lg"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item px-2">
|
<li class="nav-item px-2">
|
||||||
<a class="nav-link" href="{{route('notifications')}}" title="Notifications"><i class="lead icon-heart"></i></a>
|
<a class="nav-link" href="{{route('notifications')}}" title="Notifications"><i class="far fa-heart fa-lg"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown px-2">
|
<li class="nav-item dropdown px-2">
|
||||||
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre title="User Menu">
|
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre title="User Menu">
|
||||||
<i class="lead icon-user"></i> <span class="caret"></span>
|
<i class="far fa-user fa-lg"></i> <span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||||
@if(Auth::user()->is_admin == true)
|
<a class="dropdown-item font-weight-ultralight" href="{{Auth::user()->url()}}">
|
||||||
<a class="dropdown-item font-weight-bold" href="{{ route('admin.home') }}">Admin</a>
|
<span class="far fa-user pr-1"></span>
|
||||||
<div class="dropdown-divider"></div>
|
@{{Auth::user()->username}}
|
||||||
@endif
|
<p class="small mb-0">{{__('navmenu.viewMyProfile')}}</p>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{ Auth::user()->url() }}">My Profile</a>
|
</a>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('settings')}}">Settings</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('remotefollow')}}">Remote Follow</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('timeline.personal')}}">
|
<a class="dropdown-item font-weight-bold" href="{{route('timeline.personal')}}">
|
||||||
My Timeline
|
<span class="fas fa-list-alt pr-1"></span>
|
||||||
|
{{__('navmenu.myTimeline')}}
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
|
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
|
||||||
Public Timeline
|
<span class="far fa-list-alt pr-1"></span>
|
||||||
|
{{__('navmenu.publicTimeline')}}
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item font-weight-bold" href="{{route('remotefollow')}}">
|
||||||
|
<span class="fas fa-user-plus pr-1"></span>
|
||||||
|
{{__('navmenu.remoteFollow')}}
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item font-weight-bold" href="{{route('settings')}}">
|
||||||
|
<span class="fas fa-cog pr-1"></span>
|
||||||
|
{{__('navmenu.settings')}}
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
@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>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
@endif
|
||||||
<a class="dropdown-item font-weight-bold" href="{{ route('logout') }}"
|
<a class="dropdown-item font-weight-bold" href="{{ route('logout') }}"
|
||||||
onclick="event.preventDefault();
|
onclick="event.preventDefault();
|
||||||
document.getElementById('logout-form').submit();">
|
document.getElementById('logout-form').submit();">
|
||||||
{{ __('Logout') }}
|
<span class="fas fa-sign-out-alt pr-1"></span>
|
||||||
|
{{ __('navmenu.logout') }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||||
|
|
Loading…
Reference in a new issue