pixelfed/resources/views/layouts/partial/nav.blade.php

118 lines
7.7 KiB
PHP
Raw Normal View History

<nav class="navbar navbar-expand navbar-light navbar-laravel sticky-top">
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">
2018-07-03 03:15:28 +00:00
<img src="/img/pixelfed-icon-color.svg" height="30px" class="px-2">
2018-08-10 04:50:38 +00:00
<span class="font-weight-bold mb-0 d-none d-sm-block" style="font-size:20px;">{{ config('app.name', 'Laravel') }}</span>
2018-05-30 02:42:40 +00:00
</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
2018-06-14 05:37:45 +00:00
@auth
<ul class="navbar-nav ml-auto d-none d-md-block">
2018-05-30 02:42:40 +00:00
<form class="form-inline search-form">
<input class="form-control mr-sm-2 search-form-input" type="search" placeholder="Search" aria-label="Search">
</form>
</ul>
2018-06-14 05:37:45 +00:00
@endauth
2018-05-30 02:42:40 +00:00
<ul class="navbar-nav ml-auto">
@guest
2018-08-10 04:50:38 +00:00
<li><a class="nav-link font-weight-bold text-primary" href="{{ route('login') }}" title="Login">{{ __('Login') }}</a></li>
<li><a class="nav-link font-weight-bold" href="{{ route('register') }}" title="Register">{{ __('Register') }}</a></li>
2018-05-30 02:42:40 +00:00
@else
2018-11-20 04:03:21 +00:00
<li class="nav-item pr-2">
2018-11-09 03:53:04 +00:00
<a class="nav-link" href="{{route('discover')}}" title="Discover" data-toggle="tooltip" data-placement="bottom"><i class="far fa-compass fa-lg"></i></a>
2018-05-30 02:42:40 +00:00
</li>
2018-11-20 04:03:21 +00:00
<li class="nav-item pr-2">
<a class="nav-link" href="{{route('notifications')}}" title="Notifications" data-toggle="tooltip" data-placement="bottom"><i class="fas fa-inbox fa-lg text"></i></a>
</li>
{{-- <li class="nav-item dropdown d-none d-md-block pr-2">
2018-11-05 02:05:27 +00:00
<a class="nav-link dropdown-toggle nav-notification" href="{{route('notifications')}}" id="nav-notification" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2018-09-17 01:48:56 +00:00
<i class="fas fa-inbox fa-lg text"></i>
2018-11-05 02:05:27 +00:00
</a>
<div class="dropdown-menu dropdown-menu-right nav-notification-dropdown" aria-labelledby="nav-notification">
<div class="loader text-center">
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
</div>
2018-11-13 04:53:03 +00:00
<div class="dropdown-item disabled bg-light py-2">
<a href="{{route('notifications')}}" class="font-weight-bold mr-4" data-toggle="tooltip" title="Notifications"><i class="fas fa-inbox"></i></a>
{{-- <a href="#" class="text-muted font-weight-bold mr-4" data-toggle="tooltip" title="Direct Messages"><i class="far fa-envelope"></i></a>
2018-11-20 04:03:21 +00:00
<a href="#" class="text-muted font-weight-bold mr-4" data-toggle="tooltip" title="Following Activity"><i class="fas fa-users"></i></a> -}}
2018-11-13 04:53:03 +00:00
<a href="{{route('follow-requests')}}" class="text-muted font-weight-bold" data-toggle="tooltip" title="Follow Requests"><i class="fas fa-user-plus"></i></a>
<span class="float-right">
<a class="btn btn-sm btn-outline-secondary py-0 notification-action" data-type="mark_read" href="#">Mark as Read</a>
</span>
</div>
2018-11-05 02:05:27 +00:00
</div>
2018-11-20 04:03:21 +00:00
</li> --}}
<li class="nav-item pr-2">
2018-08-10 04:50:38 +00:00
<div title="Create new post" data-toggle="tooltip" data-placement="bottom">
<a href="{{route('compose')}}" class="nav-link" data-toggle="modal" data-target="#composeModal">
2018-08-23 04:28:26 +00:00
<i class="fas fa-camera-retro fa-lg text-primary"></i>
2018-08-10 04:50:38 +00:00
</a>
</div>
</li>
2018-11-05 02:05:27 +00:00
<li class="nav-item dropdown">
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">
2018-11-05 02:05:27 +00:00
<i class="far fa-user fa-lg"></i>
2018-05-30 02:42:40 +00:00
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
2018-06-09 23:35:21 +00:00
<a class="dropdown-item font-weight-ultralight text-truncate" href="{{Auth::user()->url()}}">
<img class="img-thumbnail rounded-circle pr-1" src="{{Auth::user()->profile->avatarUrl()}}" width="32px">
2018-06-09 04:39:06 +00:00
&commat;{{Auth::user()->username}}
2018-06-09 23:35:21 +00:00
<p class="small mb-0 text-muted">{{__('navmenu.viewMyProfile')}}</p>
2018-06-09 04:39:06 +00:00
</a>
2018-05-30 02:42:40 +00:00
<div class="dropdown-divider"></div>
<a class="dropdown-item font-weight-bold" href="{{route('timeline.personal')}}">
2018-06-09 04:39:06 +00:00
<span class="fas fa-list-alt pr-1"></span>
{{__('navmenu.myTimeline')}}
2018-05-30 02:42:40 +00:00
</a>
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
2018-06-09 04:39:06 +00:00
<span class="far fa-list-alt pr-1"></span>
{{__('navmenu.publicTimeline')}}
</a>
2018-08-10 04:50:38 +00:00
{{-- <a class="dropdown-item font-weight-bold" href="{{route('messages')}}">
<span class="far fa-envelope pr-1"></span>
{{__('navmenu.directMessages')}}
</a> --}}
2018-06-09 04:39:06 +00:00
<div class="dropdown-divider"></div>
2018-09-02 06:10:26 +00:00
{{-- <a class="dropdown-item font-weight-bold" href="{{route('remotefollow')}}">
2018-06-09 04:39:06 +00:00
<span class="fas fa-user-plus pr-1"></span>
{{__('navmenu.remoteFollow')}}
2018-09-02 06:10:26 +00:00
</a> --}}
2018-06-09 04:39:06 +00:00
<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>
<div class="dropdown-divider"></div>
@endif
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>
@endguest
</ul>
</div>
</div>
</nav>
2018-06-14 05:37:45 +00:00
@auth
2018-06-18 06:37:06 +00:00
<nav class="breadcrumb d-md-none d-flex">
2018-06-03 14:28:59 +00:00
<form class="form-inline search-form mx-auto">
<input class="form-control mr-sm-2 search-form-input" type="search" placeholder="Search" aria-label="Search">
</form>
</nav>
2018-06-18 06:37:06 +00:00
@endauth