mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 19:52:28 +01:00
Update navbar.blade.php
Modified the file to hide "Dashboard", "Settings" and "Logout" links in navbar in desktop view. These links only needed in the users personal dropdown in desktop mode, so only show them there.
This commit is contained in:
parent
2926409f13
commit
b4a1428ccd
@ -12,9 +12,14 @@
|
||||
</div>
|
||||
|
||||
<ul id="navbar" class="nav navbar-collapse collapse navbar-nav" id="nbc">
|
||||
<li><a href="about">About</a></li>
|
||||
<li class="visible-xs"><a href="{{route('login')}}">Sign In</a></li>
|
||||
<li class="visible-xs"><a href="{{route('admin')}}">Dashboard</a></li>
|
||||
@if (empty(session('username')))
|
||||
<li class="visible-xs"><a href="{{route('login')}}">Sign In</a></li>
|
||||
@else
|
||||
<li class="visible-xs"><a tabindex="-1" href="{{route('admin')}}">Dashboard</a></li>
|
||||
<li class="visible-xs"><a tabindex="-1" href="{{route('admin')}}#settings">Settings</a></li>
|
||||
<li class="visible-xs"><a tabindex="-1" href="{{route('logout')}}">Logout</a></li>
|
||||
@endif
|
||||
<li><a href="about">About</a></li>
|
||||
</ul>
|
||||
<ul id="navbar" class="nav pull-right navbar-nav hidden-xs">
|
||||
<li class="divider-vertical"></li>
|
||||
|
Loading…
Reference in New Issue
Block a user