before fixing navbar
This commit is contained in:
parent
32d977c115
commit
a5bf234398
|
@ -1,7 +1,8 @@
|
||||||
|
xxxx
|
||||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top navbar-top">
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top navbar-top">
|
||||||
|
|
||||||
<a class="navbar-brand" href="{{ path('blogs') }}">
|
<a class="navbar-brand" href="/">
|
||||||
<img src="{{ asset('build/images/24unix/24_logo_bg_64x64.png') }}" alt="24unix.net" id="site-logo">
|
<img src="/build/images/24unix/24_logo_bg_64x64.png" alt="24unix.net" id="site-logo">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#CollapsingNavbar">
|
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#CollapsingNavbar">
|
||||||
|
@ -10,13 +11,110 @@
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="CollapsingNavbar">
|
<div class="collapse navbar-collapse" id="CollapsingNavbar">
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
{% if is_granted('ROLE_USER') %}
|
|
||||||
<li class="nav-item dropdown my-2 my-lg-0">
|
<li class="nav-item dropdown my-2 my-lg-0">
|
||||||
<button type="button" id="navbar-dropdown" data-toggle="dropdown"
|
<button type="button" id="navbar-dropdown" data-toggle="dropdown"
|
||||||
class="btn btn-primary dropdown-toggle ml-auto button-login">
|
class="btn btn-primary dropdown-toggle ml-auto button-login">
|
||||||
{{ app.user.username }}
|
tracer
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<div class="dropdown-menu dropdown-menu-right" id="dropdown-menu" aria-labelledby="navbar-dropdown">
|
||||||
|
<a class="dropdown-item" href="/spookie/profile">
|
||||||
|
<span class="fas fa-user" aria-hidden="true"></span>
|
||||||
|
Profile</a>
|
||||||
|
<a class="dropdown-item" href="#">
|
||||||
|
<span class="fas fa-cog" aria-hidden="true"></span>
|
||||||
|
Settings</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item" href="/admin/">
|
||||||
|
<span class="fas fa-cog" aria-hidden="true"></span>
|
||||||
|
Administration
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
|
||||||
|
<a class="dropdown-item" href="/spookie/logout">
|
||||||
|
<span class="fas fa-sign-out-alt" aria-hidden="true"></span>
|
||||||
|
Logout
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
yyyy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
|
<a class="navbar-brand" href="#">Navbar</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
<ul class="navbar-nav mr-auto">
|
||||||
|
<li class="nav-item active">
|
||||||
|
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="#">Link</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Dropdown
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||||
|
<a class="dropdown-item" href="#">Action</a>
|
||||||
|
<a class="dropdown-item" href="#">Another action</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item" href="#">Something else here</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link disabled" href="#">Disabled</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<form class="form-inline my-2 my-lg-0">
|
||||||
|
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
|
||||||
|
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top navbar-top">
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
|
||||||
|
<a class="navbar-brand" href="{{ path('blogs') }}">
|
||||||
|
<img src="{{ asset('build/images/24unix/24_logo_bg_64x64.png') }}" alt="24unix.net" id="site-logo">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<button class="navbar-toggler border-0" type="button" data-bs-toggle="collapse" data-target="#CollapsingNavbar">
|
||||||
|
☰
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse" id="CollapsingNavbar">
|
||||||
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link active" aria-current="page" href="{{ path('app_register') }}">Register</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="{{ path('user') }}">User</a>
|
||||||
|
</li>
|
||||||
|
{% if is_granted('ROLE_USER') %}
|
||||||
|
<div class="d-flex justify-content-end">
|
||||||
|
|
||||||
|
<li class="nav-item dropdown my-2 my-lg-0">
|
||||||
|
<li class="nav-item dropdown my-2 my-lg-0">
|
||||||
|
|
||||||
|
<button type="button" id="navbar-dropdown" data-bs-target="#dropdown-menu" data-bs-toggle="collapse"
|
||||||
|
class="btn btn-primary dropdown-toggle ml-auto button-login">
|
||||||
|
{{ app.user.username }}
|
||||||
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-right" id="dropdown-menu" aria-labelledby="navbar-dropdown">
|
<div class="dropdown-menu dropdown-menu-right" id="dropdown-menu" aria-labelledby="navbar-dropdown">
|
||||||
<a class="dropdown-item" href="{{ path('blogs') }}">
|
<a class="dropdown-item" href="{{ path('blogs') }}">
|
||||||
<span class="fas fa-user" aria-hidden="true"></span>
|
<span class="fas fa-user" aria-hidden="true"></span>
|
||||||
|
@ -46,8 +144,14 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
-->
|
Loading…
Reference in New Issue