Enable users drop down menu on their name, with a link to register/link a BBS

This commit is contained in:
Deon George 2022-12-11 21:32:32 +11:00
parent 1656d3c35c
commit c4169248ff
3 changed files with 32 additions and 2 deletions

20
public/css/fixes.css vendored
View File

@ -61,4 +61,24 @@ ol {
.btn.btn-success a {
color: white;
}
/* Stop dropdown menu animation */
.collapsing {
-webkit-transition: none;
transition: none;
display: none;
}
/* dropdown menu fixes */
#nav-menu div.collapse.navbar-collapse.show ul {
padding: 5px 20px 5px 5px;
}
#nav-menu div.collapse.navbar-collapse.show li {
display: list-item;
}
#nav-menu div.collapse.navbar-collapse.show li a {
padding: 5px 5px 5px 5px;
margin: 0;
font-size: 85%;
}

View File

@ -3,7 +3,7 @@
<script type="text/javascript" src="https:///cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js" integrity="sha512-WFN04846sdKMIP5LKNphMaWzU7YpMyCU245etK3g/2ARYbPK9Ub18eG+ljU96qKRCWh+quCY7yefSmlkQw1ANQ==" crossorigin="anonymous"></script>
<!-- JavaScript Bundle with Popper -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- Additional Utilities -->
<script src="{{ asset('plugin/bootstrap3-typeahead/bootstrap3-typeahead.min.js') }}"></script>

View File

@ -18,7 +18,17 @@
<ul class="float-end">
@auth
<li class="{{ $user->switched ? 'switched' : '' }}"><a href="{{ url('settings') }}"><span>{{ $user->name }}</span></a></li>
<li>
<a class="{{ $user->switched ? 'switched' : '' }}" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDarkDropdown" aria-controls="navbarNavDarkDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span>{{ $user->name }}</span>
</a>
<div class="collapse navbar-collapse" id="navbarNavDarkDropdown">
<ul class="dropdown-menu dropdown-menu-dark">
<li><a class="dropdown-item" href="{{ url('user/system/register') }}">Register/Link System</a></li>
</ul>
</div>
</li>
@if($user->switched)
<li><a href="{{ url('admin/switch/stop') }}">
<span>Switch Back</span>