mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update admin settings views
This commit is contained in:
parent
a3a761c348
commit
813648cfbb
2 changed files with 100 additions and 72 deletions
|
@ -1,67 +1,92 @@
|
||||||
<nav class="navbar navbar-expand-lg navbar-light">
|
<nav class="navbar navbar-expand-lg navbar-light">
|
||||||
<div class="container">
|
<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">
|
<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>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="topbarNav">
|
<div class="collapse navbar-collapse" id="topbarNav">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<li class="nav-item mx-2 {{request()->is('*admin/dashboard')?'active':''}}">
|
<li class="nav-item mx-4 {{request()->is('*admin/dashboard')?'active':''}}">
|
||||||
<a class="nav-link" href="{{route('admin.home')}}">Dashboard</a>
|
<a class="nav-link" href="{{route('admin.home')}}">Dashboard</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
{{--<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>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Configuration</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mx-2 {{request()->is('*instances*')?'active':''}}">
|
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
||||||
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.instances')}}">Instances</a>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Content</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mx-2 {{request()->is('*media*')?'active':''}}">
|
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
||||||
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.media')}}">Media</a>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Federation</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mx-2 {{request()->is('*reports*')?'active':''}}">
|
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
||||||
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.reports')}}">Moderation</a>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Moderation</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mx-2 {{request()->is('*profiles*')?'active':''}}">
|
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
||||||
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.profiles')}}">Profiles</a>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Platform</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mx-2 {{request()->is('*statuses*')?'active':''}}">
|
<li class="nav-item mx-2 align-self-center text-lighter">|</li>
|
||||||
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.statuses')}}">Statuses</a>
|
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
||||||
</li>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Media</a>
|
||||||
<li class="nav-item mx-2 {{request()->is('*users*')?'active':''}}">
|
</li>
|
||||||
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.users')}}">Users</a>
|
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
||||||
</li>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Profiles</a>
|
||||||
<li class="nav-item dropdown mx-3 {{request()->is(['*settings*','*discover*', '*site-news*'])?'active':''}}">
|
</li>
|
||||||
<a class="nav-link dropdown-toggle px-4" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<li class="nav-item mx-2 {{request()->is('*messages*')?'active':''}}">
|
||||||
More
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Statuses</a>
|
||||||
</a>
|
</li> --}}
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
<li class="nav-item mx-4 {{request()->is('*messages*')?'active':''}}">
|
||||||
<a class="dropdown-item font-weight-bold {{request()->is('*apps*')?'active':''}}" href="{{route('admin.apps')}}">Apps</a>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.messages')}}">Messages</a>
|
||||||
<a class="dropdown-item font-weight-bold {{request()->is('*discover*')?'active':''}}" href="{{route('admin.discover')}}">Discover</a>
|
</li>
|
||||||
<a class="dropdown-item font-weight-bold {{request()->is('*hashtags*')?'active':''}}" href="{{route('admin.hashtags')}}">Hashtags</a>
|
{{-- <li class="nav-item mx-4 {{request()->is('*instances*')?'active':''}}">
|
||||||
<a class="dropdown-item font-weight-bold {{request()->is('*site-news*')?'active':''}}" href="/i/admin/site-news">Newsroom</a>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.instances')}}">Instances</a>
|
||||||
<div class="dropdown-divider"></div>
|
</li> --}}
|
||||||
<a class="dropdown-item font-weight-bold" href="/horizon">Horizon</a>
|
<li class="nav-item mx-4 {{request()->is('*reports*')?'active':''}}">
|
||||||
{{-- <a class="dropdown-item font-weight-bold" href="#">Websockets</a> --}}
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.reports')}}">Moderation</a>
|
||||||
<div class="dropdown-divider"></div>
|
</li>
|
||||||
<a class="dropdown-item font-weight-bold {{request()->is('*settings*')?'active':''}}" href="{{route('admin.settings')}}">Settings</a>
|
{{-- <li class="nav-item mx-2 {{request()->is('*profiles*')?'active':''}}">
|
||||||
</div>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.profiles')}}">Profiles</a>
|
||||||
</li>
|
</li> --}}
|
||||||
</ul>
|
<li class="nav-item mx-4 {{request()->is('*statuses*')?'active':''}}">
|
||||||
</div>
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.statuses')}}">Statuses</a>
|
||||||
</div>
|
</li>
|
||||||
|
<li class="nav-item mx-4 {{request()->is('*users*')?'active':''}}">
|
||||||
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.users')}}">Users</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item mx-4 {{request()->is('*settings*')?'active':''}}">
|
||||||
|
<a class="nav-link font-weight-lighter text-muted" href="{{route('admin.settings')}}">Settings</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown ml-3 {{request()->is(['*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">
|
||||||
|
More
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||||
|
<a class="dropdown-item font-weight-bold {{request()->is('*apps*')?'active':''}}" href="{{route('admin.apps')}}">Apps</a>
|
||||||
|
{{-- <a class="dropdown-item font-weight-bold {{request()->is('*discover*')?'active':''}}" href="{{route('admin.discover')}}">Discover</a> --}}
|
||||||
|
<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('*instances*')?'active':''}}" href="{{route('admin.instances')}}">Instances</a>
|
||||||
|
<a class="dropdown-item font-weight-bold {{request()->is('*media*')?'active':''}}" href="{{route('admin.media')}}">Media</a>
|
||||||
|
<a class="dropdown-item font-weight-bold {{request()->is('*site-news*')?'active':''}}" href="/i/admin/site-news">Newsroom</a>
|
||||||
|
<a class="dropdown-item font-weight-bold {{request()->is('*profiles*')?'active':''}}" href="/i/admin/profiles">Profiles</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item font-weight-bold" href="/horizon">Horizon</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
@push('styles')
|
@push('styles')
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#topbarNav .nav-item:hover {
|
#topbarNav .nav-item:hover {
|
||||||
border-bottom: 2px solid #08d;
|
border-bottom: 2px solid #08d;
|
||||||
margin-bottom: -7px;
|
margin-bottom: -7px;
|
||||||
}
|
}
|
||||||
#topbarNav .nav-item.active {
|
#topbarNav .nav-item.active {
|
||||||
border-bottom: 2px solid #08d;
|
border-bottom: 2px solid #08d;
|
||||||
margin-bottom: -7px;
|
margin-bottom: -7px;
|
||||||
}
|
}
|
||||||
#topbarNav .nav-item.active .nav-link {
|
#topbarNav .nav-item.active .nav-link {
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@endpush
|
@endpush
|
|
@ -3,24 +3,27 @@
|
||||||
<li class="nav-item pl-3">
|
<li class="nav-item pl-3">
|
||||||
<a class="nav-link text-muted {{request()->is('*settings') ? 'font-weight-bold':''}}" href="{{route('admin.settings')}}">Home</a>
|
<a class="nav-link text-muted {{request()->is('*settings') ? 'font-weight-bold':''}}" href="{{route('admin.settings')}}">Home</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item pl-3">
|
{{-- <li class="nav-item pl-3">
|
||||||
<a class="nav-link text-muted {{request()->is('*settings/backups') ? 'font-weight-bold':''}}" href="{{route('admin.settings.backups')}}">Backups</a>
|
<a class="nav-link text-muted {{request()->is('*settings/backups') ? 'font-weight-bold':''}}" href="{{route('admin.settings.backups')}}">Backups</a>
|
||||||
</li>
|
</li> --}}
|
||||||
<li class="nav-item pl-3">
|
{{-- <li class="nav-item pl-3">
|
||||||
<a class="nav-link text-muted {{request()->is('*settings/config') ? 'font-weight-bold':''}}" href="{{route('admin.settings.config')}}">Configuration</a>
|
<a class="nav-link text-muted {{request()->is('*settings/config') ? 'font-weight-bold':''}}" href="{{route('admin.settings.config')}}">Configuration</a>
|
||||||
</li>
|
</li> --}}
|
||||||
<li class="nav-item pl-3">
|
{{-- <li class="nav-item pl-3">
|
||||||
|
<a class="nav-link text-muted {{request()->is('*settings/customize') ? 'font-weight-bold':''}}" href="{{route('admin.settings.customize')}}">Customize</a>
|
||||||
|
</li> --}}
|
||||||
|
{{-- <li class="nav-item pl-3">
|
||||||
<a class="nav-link text-muted {{request()->is('*settings/features') ? 'font-weight-bold':''}}" href="{{route('admin.settings.features')}}">Features</a>
|
<a class="nav-link text-muted {{request()->is('*settings/features') ? 'font-weight-bold':''}}" href="{{route('admin.settings.features')}}">Features</a>
|
||||||
</li>
|
</li> --}}
|
||||||
<li class="nav-item pl-3">
|
{{-- <li class="nav-item pl-3">
|
||||||
<a class="nav-link text-muted {{request()->is('*settings/maintenance') ? 'font-weight-bold':''}}" href="{{route('admin.settings.maintenance')}}">Maintenance</a>
|
<a class="nav-link text-muted {{request()->is('*settings/maintenance') ? 'font-weight-bold':''}}" href="{{route('admin.settings.maintenance')}}">Maintenance</a>
|
||||||
</li>
|
</li> --}}
|
||||||
<li class="nav-item pl-3">
|
<li class="nav-item pl-3">
|
||||||
<a class="nav-link text-muted {{request()->is('*settings/page*') ? 'font-weight-bold':''}}" href="{{route('admin.settings.pages')}}">Pages</a>
|
<a class="nav-link text-muted {{request()->is('*settings/page*') ? 'font-weight-bold':''}}" href="{{route('admin.settings.pages')}}">Pages</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item pl-3">
|
{{-- <li class="nav-item pl-3">
|
||||||
<a class="nav-link text-muted {{request()->is('*settings/storage') ? 'font-weight-bold':''}}" href="{{route('admin.settings.storage')}}">Storage</a>
|
<a class="nav-link text-muted {{request()->is('*settings/storage') ? 'font-weight-bold':''}}" href="{{route('admin.settings.storage')}}">Storage</a>
|
||||||
</li>
|
</li> --}}
|
||||||
<li class="nav-item pl-3">
|
<li class="nav-item pl-3">
|
||||||
<a class="nav-link text-muted {{request()->is('*settings/system') ? 'font-weight-bold':''}}" href="{{route('admin.settings.system')}}">System</a>
|
<a class="nav-link text-muted {{request()->is('*settings/system') ? 'font-weight-bold':''}}" href="{{route('admin.settings.system')}}">System</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue