mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-12 17:41:14 +02:00
Admin dropdown auto shows
The admin link will automatically show when viewing a page within the admin links. Mainly whenever the url has /panel/ as the first directory after the domain. We can also remove the config option for this now too but I didn't see where to find it at yet.
This commit is contained in:
parent
21b28b959b
commit
1c3435a742
@ -188,25 +188,24 @@ if($url1sb == '200' or $url2sb == '200') {
|
||||
@endif
|
||||
</a>
|
||||
@if(auth()->user()->role == 'admin')
|
||||
<ul class="list-unstyled components mb-5">
|
||||
<li class="active">
|
||||
<a @if(config('advanced-config.expand_panel_admin_menu_permanently') != 'true') href="#adminSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle" @endif>Admin</a>
|
||||
<ul class="@if(config('advanced-config.expand_panel_admin_menu_permanently') != 'true') collapse @endif list-unstyled" id="adminSubmenu">
|
||||
<li class="{{ Request::segment(2) == 'config' ? 'active' : ''}}">
|
||||
<a href="{{ url('panel/config') }}">Config</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a href="#adminSubmenu" data-toggle="collapse" @if(Request::segment(1) == 'panel' ) class="dropdown-toggle" aria-expanded="true" @else class="dropdown-toggle collapsed" aria-expanded="false" @endif>Admin</a>
|
||||
<ul class="collapse list-unstyled @if(Request::segment(1) == 'panel' ) show @endif " id="adminSubmenu">
|
||||
<li class="{{ Request::segment(2) == 'config' ? 'active' : ''}}">
|
||||
<a href="{{ url('panel/config') }}">Config</a>
|
||||
</li>
|
||||
<li class="{{ Request::segment(2) == 'users' ? 'active' : ''}}">
|
||||
<a href="{{ url('panel/users/all') }}">Manage Users</a>
|
||||
</li>
|
||||
<li class="{{ Request::segment(2) == 'pages' ? 'active' : ''}}">
|
||||
<a href="{{ url('panel/pages') }}">Footer Pages</a>
|
||||
</li>
|
||||
<li class="{{ Request::segment(2) == 'site' ? 'active' : ''}}">
|
||||
<a href="{{ url('panel/site') }}">Home Page</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
<a href="{{ url('panel/users/all') }}">Manage Users</a>
|
||||
</li>
|
||||
<li class="{{ Request::segment(2) == 'pages' ? 'active' : ''}}">
|
||||
<a href="{{ url('panel/pages') }}">Footer Pages</a>
|
||||
</li>
|
||||
<li class="{{ Request::segment(2) == 'site' ? 'active' : ''}}">
|
||||
<a href="{{ url('panel/site') }}">Home Page</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<li class="{{ Request::segment(2) == 'add-link' ? 'active' : ''}}">
|
||||
<a href="{{ url('/studio/add-link') }}">Add Page Item</a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user