mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update blade views
This commit is contained in:
parent
ca5d964f5f
commit
bc2d664fdb
1 changed files with 69 additions and 36 deletions
|
@ -9,7 +9,7 @@
|
||||||
@auth
|
@auth
|
||||||
<div class="navbar-nav d-none d-md-block mx-auto">
|
<div class="navbar-nav d-none d-md-block mx-auto">
|
||||||
<form class="form-inline search-bar" method="get" action="/i/results">
|
<form class="form-inline search-bar" method="get" action="/i/results">
|
||||||
<input class="form-control form-control-sm" name="q" placeholder="{{__('navmenu.search')}}" aria-label="search" autocomplete="off" required style="line-height: 0.6;width:200px" role="search">
|
<input class="form-control form-control-sm rounded-pill bg-light" name="q" placeholder="{{__('navmenu.search')}}" aria-label="search" autocomplete="off" required style="line-height: 0.6;width:200px" role="search">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@endauth
|
@endauth
|
||||||
|
@ -34,83 +34,116 @@
|
||||||
<ul class="navbar-nav align-items-center">
|
<ul class="navbar-nav align-items-center">
|
||||||
<li class="nav-item px-md-2 d-none d-md-block">
|
<li class="nav-item px-md-2 d-none d-md-block">
|
||||||
<a class="nav-link font-weight-bold text-dark" href="/" title="Home" data-toggle="tooltip" data-placement="bottom">
|
<a class="nav-link font-weight-bold text-dark" href="/" title="Home" data-toggle="tooltip" data-placement="bottom">
|
||||||
<i class="fas fa-home fa-lg"></i>
|
<i class="fal fa-home fa-lg" style="font-size: 22px;"></i>
|
||||||
<span class="sr-only">Home</span>
|
<span class="sr-only">Home</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item px-md-2">
|
<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">
|
<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>
|
<i class="fal fa-location-circle fa-lg" style="font-size: 22px;"></i>
|
||||||
<span class="sr-only">Direct</span>
|
<span class="sr-only">Direct</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item px-md-2 d-none d-md-block">
|
<li class="nav-item px-md-2 d-none d-md-block">
|
||||||
<a class="nav-link font-weight-bold text-dark" href="/account/activity" title="Notifications" data-toggle="tooltip" data-placement="bottom">
|
<a class="nav-link font-weight-bold text-dark" href="/account/activity" title="Notifications" data-toggle="tooltip" data-placement="bottom">
|
||||||
<i class="far fa-bell fa-lg"></i>
|
<i class="fal fa-bell fa-lg" style="font-size: 22px;"></i>
|
||||||
<span class="sr-only">Notifications</span>
|
<span class="sr-only">Notifications</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item px-md-2 d-none d-md-block">
|
<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()">
|
<div class="nav-link btn btn-primary lead btn-sm px-3 py-1 text-white shadow rounded-pill d-flex align-items-center" title="Compose" data-toggle="tooltip" data-placement="bottom" onclick="App.util.compose.post()">
|
||||||
<span>New Post</span>
|
<i class="fal fa-plus-circle" style="font-size:14px;margin-right:6px;"></i>
|
||||||
|
New
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown ml-2">
|
<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">
|
<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>
|
<i class="far fa-user fa-lg text-dark"></i>
|
||||||
<span class="sr-only">User Menu</span>
|
<span class="sr-only">User Menu</span>
|
||||||
<img class="d-none" src="/storage/avatars/default.png?v=0" class="rounded-circle border shadow" width="34" height="34" onerror="this.onerror=null;this.src='/storage/avatars/default.png?v=0';">
|
<img class="d-none" src="/storage/avatars/default.png?v=0" class="rounded-circle border shadow" width="38" height="38" onerror="this.onerror=null;this.src='/storage/avatars/default.png?v=0';">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown" style="min-width: 200px;">
|
||||||
@if(config('federation.network_timeline'))
|
<a class="dropdown-item lead" href="{{route('discover')}}">
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
|
<span style="width: 50px;margin-right:14px;">
|
||||||
<span class="fas fa-stream pr-2 text-lighter"></span>
|
<span class="fal fa-compass text-lighter fa-lg"></span>
|
||||||
Public
|
</span>
|
||||||
|
{{__('navmenu.discover')}}
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('timeline.network')}}">
|
<a class="dropdown-item lead" href="/groups">
|
||||||
<span class="fas fa-globe pr-2 text-lighter"></span>
|
<span style="width: 50px;margin-right:14px;">
|
||||||
Network
|
<span class="fal fa-user-friends text-lighter"></span>
|
||||||
|
</span>
|
||||||
|
Groups
|
||||||
|
</a>
|
||||||
|
<a class="dropdown-item lead" href="/i/stories/new">
|
||||||
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fal fa-history text-lighter fa-lg"></span>
|
||||||
|
</span>
|
||||||
|
Stories
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
@if(config('federation.network_timeline'))
|
||||||
|
<a class="dropdown-item lead" href="{{route('timeline.public')}}">
|
||||||
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fal fa-home text-lighter fa-lg"></span>
|
||||||
|
</span>
|
||||||
|
My Feed
|
||||||
|
</a>
|
||||||
|
<a class="dropdown-item lead" href="{{route('timeline.public')}}">
|
||||||
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fal fa-stream text-lighter fa-lg"></span>
|
||||||
|
</span>
|
||||||
|
Public Feed
|
||||||
|
</a>
|
||||||
|
<a class="dropdown-item lead" href="{{route('timeline.network')}}">
|
||||||
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fal fa-globe text-lighter fa-lg"></span>
|
||||||
|
</span>
|
||||||
|
Network Feed
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
<a class="dropdown-item font-weight-bold" href="/">
|
<a class="dropdown-item lead" href="/">
|
||||||
<span class="fas fa-home pr-2 text-lighter"></span>
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fal fa-home text-lighter fa-lg"></span>
|
||||||
|
</span>
|
||||||
Home
|
Home
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
|
<a class="dropdown-item lead" href="{{route('timeline.public')}}">
|
||||||
<span class="fas fa-stream pr-2 text-lighter"></span>
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fas fa-stream text-lighter fa-lg"></span>
|
||||||
|
</span>
|
||||||
Public
|
Public
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('discover')}}">
|
<a class="dropdown-item lead" href="/i/me">
|
||||||
<span class="far fa-compass pr-2 text-lighter"></span>
|
<span style="width: 50px;margin-right:14px;">
|
||||||
{{__('navmenu.discover')}}
|
<span class="fal fa-user text-lighter fa-lg"></span>
|
||||||
</a>
|
</span>
|
||||||
<a class="dropdown-item font-weight-bold" href="/i/stories/new">
|
|
||||||
<span class="fas fa-history text-lighter pr-2"></span>
|
|
||||||
Stories
|
|
||||||
</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a class="dropdown-item font-weight-bold" href="/i/me">
|
|
||||||
<span class="far fa-user pr-2 text-lighter"></span>
|
|
||||||
{{__('navmenu.myProfile')}}
|
{{__('navmenu.myProfile')}}
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('settings')}}">
|
<a class="dropdown-item lead" href="{{route('settings')}}">
|
||||||
<span class="fas fa-cog pr-2 text-lighter"></span>
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fal fa-cog text-lighter fa-lg"></span>
|
||||||
|
</span>
|
||||||
{{__('navmenu.settings')}}
|
{{__('navmenu.settings')}}
|
||||||
</a>
|
</a>
|
||||||
@if(Auth::user()->is_admin == true)
|
@if(Auth::user()->is_admin == true)
|
||||||
<a class="dropdown-item font-weight-bold" href="{{ route('admin.home') }}">
|
<a class="dropdown-item lead" href="{{ route('admin.home') }}">
|
||||||
<span class="fas fa-shield-alt fa-sm pr-2 text-lighter"></span>
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fal fa-shield-alt text-lighter fa-lg"></span>
|
||||||
|
</span>
|
||||||
{{__('navmenu.admin')}}
|
{{__('navmenu.admin')}}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{ route('logout') }}"
|
<a class="dropdown-item lead" href="{{ route('logout') }}"
|
||||||
onclick="event.preventDefault();
|
onclick="event.preventDefault();
|
||||||
document.getElementById('logout-form').submit();">
|
document.getElementById('logout-form').submit();">
|
||||||
<span class="fas fa-sign-out-alt pr-2"></span>
|
<span style="width: 50px;margin-right:14px;">
|
||||||
|
<span class="fal fa-sign-out-alt fa-lg"></span>
|
||||||
|
</span>
|
||||||
{{ __('navmenu.logout') }}
|
{{ __('navmenu.logout') }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue