1
0
Fork 0
forked from mirror/pixelfed
pixelfed/resources/views/admin/partial/topnav.blade.php

67 lines
3.7 KiB
PHP
Raw Normal View History

2020-01-18 04:23:11 +00:00
<nav class="navbar navbar-expand-lg navbar-light">
2019-01-31 20:11:58 +00:00
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#topbarNav" aria-controls="topbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="topbarNav">
<ul class="navbar-nav">
<li class="nav-item mx-2 {{request()->is('*admin/dashboard')?'active':''}}">
<a class="nav-link" href="{{route('admin.home')}}">Dashboard</a>
</li>
2019-06-19 01:14:46 +00:00
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Messages</a>
2019-01-31 20:11:58 +00:00
</li>
<li class="nav-item mx-2 {{request()->is('*instances*')?'active':''}}">
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.instances')}}">Instances</a>
</li>
<li class="nav-item mx-2 {{request()->is('*media*')?'active':''}}">
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.media')}}">Media</a>
</li>
<li class="nav-item mx-2 {{request()->is('*reports*')?'active':''}}">
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.reports')}}">Moderation</a>
</li>
<li class="nav-item mx-2 {{request()->is('*profiles*')?'active':''}}">
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.profiles')}}">Profiles</a>
</li>
<li class="nav-item mx-2 {{request()->is('*statuses*')?'active':''}}">
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.statuses')}}">Statuses</a>
</li>
<li class="nav-item mx-2 {{request()->is('*users*')?'active':''}}">
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.users')}}">Users</a>
</li>
2020-01-18 04:23:11 +00:00
<li class="nav-item dropdown mx-3 {{request()->is(['*settings*','*discover*', '*site-news*'])?'active':''}}">
<a class="nav-link dropdown-toggle px-4" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2019-01-31 20:11:58 +00:00
More
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
2019-06-19 01:14:46 +00:00
<a class="dropdown-item font-weight-bold {{request()->is('*apps*')?'active':''}}" href="{{route('admin.apps')}}">Apps</a>
2019-02-11 00:00:20 +00:00
<a class="dropdown-item font-weight-bold {{request()->is('*discover*')?'active':''}}" href="{{route('admin.discover')}}">Discover</a>
2019-12-24 06:53:27 +00:00
<a class="dropdown-item font-weight-bold {{request()->is('*hashtags*')?'active':''}}" href="{{route('admin.hashtags')}}">Hashtags</a>
<a class="dropdown-item font-weight-bold {{request()->is('*site-news*')?'active':''}}" href="/i/admin/site-news">Newsroom</a>
2019-02-11 00:00:20 +00:00
<div class="dropdown-divider"></div>
2019-01-31 20:11:58 +00:00
<a class="dropdown-item font-weight-bold" href="/horizon">Horizon</a>
2019-02-11 00:00:20 +00:00
{{-- <a class="dropdown-item font-weight-bold" href="#">Websockets</a> --}}
2019-01-31 20:11:58 +00:00
<div class="dropdown-divider"></div>
<a class="dropdown-item font-weight-bold {{request()->is('*settings*')?'active':''}}" href="{{route('admin.settings')}}">Settings</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
@push('styles')
<style type="text/css">
#topbarNav .nav-item:hover {
border-bottom: 2px solid #08d;
margin-bottom: -7px;
}
#topbarNav .nav-item.active {
border-bottom: 2px solid #08d;
margin-bottom: -7px;
}
#topbarNav .nav-item.active .nav-link {
font-weight: bold !important;
}
</style>
@endpush