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

126 lines
7.2 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-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>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
2018-06-14 05:37:45 +00:00
@auth
2019-03-12 06:55:44 +00:00
<ul class="navbar-nav ml-auto">
2018-05-30 02:42:40 +00:00
<form class="form-inline search-form">
2019-02-28 03:43:45 +00:00
<input class="form-control mr-sm-2 search-form-input" placeholder="{{__('navmenu.search')}}" aria-label="search" autocomplete="off">
2018-05-30 02:42:40 +00:00
</form>
</ul>
2018-06-14 05:37:45 +00:00
@endauth
2018-05-30 02:42:40 +00:00
@guest
2019-03-05 02:10:47 +00:00
<ul class="navbar-nav ml-auto">
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
2019-03-05 02:10:47 +00:00
<ul class="navbar-nav mx-auto">
2019-03-04 19:43:25 +00:00
<li class="">
2018-12-11 03:44:41 +00:00
<a class="nav-link font-weight-bold {{request()->is('/') ?'text-primary':''}}" href="/" title="Home Timeline">
2018-12-16 08:59:30 +00:00
<span class="d-none d-md-block">
2019-02-28 03:43:45 +00:00
{{__('navmenu.home')}}
2018-12-16 08:59:30 +00:00
</span>
2018-12-11 03:44:41 +00:00
</a>
</li>
2019-03-05 02:04:41 +00:00
<li>
2019-03-04 19:43:25 +00:00
<a class="nav-link font-weight-bold {{request()->is('timeline/public') ?'text-primary':''}}" href="/timeline/public">
2018-12-16 08:59:30 +00:00
<span class="d-none d-md-block">
2019-02-28 03:43:45 +00:00
{{__('navmenu.local')}}
2018-12-16 08:59:30 +00:00
</span>
2018-12-11 03:44:41 +00:00
</a>
2018-05-30 02:42:40 +00:00
</li>
2019-03-10 07:13:10 +00:00
2018-12-16 08:59:30 +00:00
<li class="d-block d-md-none">
2019-03-12 06:55:44 +00:00
2018-12-16 08:59:30 +00:00
</li>
2019-03-04 19:43:25 +00:00
2018-12-16 08:59:30 +00:00
{{-- <li class="pr-2">
<a class="nav-link font-weight-bold" href="/" title="Home">
{{ __('Network') }}
</a>
</li> --}}
<li class="nav-item pr-md-2">
2019-02-28 03:43:45 +00:00
<a class="nav-link font-weight-bold {{request()->is('*discover*') ?'text-primary':''}}" href="{{route('discover')}}" title="Discover" data-toggle="tooltip" data-placement="bottom">
2018-12-16 08:59:30 +00:00
<span class="d-none d-md-block">
2019-02-28 03:43:45 +00:00
{{__('navmenu.discover')}}</i>
2018-12-16 08:59:30 +00:00
</span>
</a>
2018-11-20 04:03:21 +00:00
</li>
2019-03-04 19:43:25 +00:00
<div class="d-none d-md-block">
<li class="nav-item pr-md-2">
<div title="Create new post" data-toggle="tooltip" data-placement="bottom">
<a href="{{route('compose')}}" class="nav-link" data-toggle="modal" data-target="#composeModal">
<i class="fas fa-camera-retro fa-lg text-primary"></i>
</a>
</div>
</li>
</div>
</ul>
<ul class="navbar-nav">
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">
2019-03-04 19:43:25 +00:00
<img class="rounded-circle box-shadow mr-1" src="{{Auth::user()->profile->avatarUrl()}}" width="26px" height="26px">
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="rounded-circle box-shadow mr-1" src="{{Auth::user()->profile->avatarUrl()}}" width="26px" height="26px">
2018-06-09 04:39:06 +00:00
&commat;{{Auth::user()->username}}
<p class="small mb-0 text-muted text-center">{{__('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-12-11 03:44:41 +00:00
<span class="fas fa-home pr-1"></span>
2018-06-09 04:39:06 +00:00
{{__('navmenu.myTimeline')}}
2018-05-30 02:42:40 +00:00
</a>
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
<span class="fas fa-align-justify pr-1"></span>
2018-06-09 04:39:06 +00:00
{{__('navmenu.publicTimeline')}}
</a>
2018-12-16 08:59:30 +00:00
2018-12-16 09:04:18 +00:00
<a class="d-block d-md-none dropdown-item font-weight-bold" href="{{route('discover')}}">
2018-12-16 08:59:30 +00:00
<span class="far fa-compass pr-1"></span>
2019-02-28 03:43:45 +00:00
{{__('navmenu.discover')}}
2018-12-16 08:59:30 +00:00
</a>
{{-- <a class="dropdown-item font-weight-bold" href="{{route('messages')}}">
<span class="far fa-envelope pr-1"></span>
{{__('navmenu.directMessages')}}
2019-02-28 03:43:45 +00:00
</a>
<a class="dropdown-item font-weight-bold" href="{{route('account.circles')}}">
<span class="far fa-circle pr-1"></span>
{{__('Circles')}}
</a>--}}
2018-06-09 04:39:06 +00:00
<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>
@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>
2019-03-04 19:43:25 +00:00
</nav>