refactored

This commit is contained in:
tracer 2022-04-11 17:50:55 +02:00
parent eadd1e81d0
commit 08597a2ebe
1 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<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="{{ path('app_main') }}">
<img src="{{ asset('build/images/24unix/24_logo_bg_64x64.png') }}" alt="24unix.net" id="site-logo"> <img src="{{ asset('build/images/24unix/24_logo_bg_64x64.png') }}" alt="24unix.net" id="site-logo">
</a> </a>
@ -10,12 +10,14 @@
<div class="collapse navbar-collapse" id="CollapsingNavbar"> <div class="collapse navbar-collapse" id="CollapsingNavbar">
<ul class="navbar-nav ms-auto"> <ul class="navbar-nav ms-auto">
<!--
<li> <li>
<form class="d-flex"> <form class="d-flex">
<input class="form-control me-2 my-2" type="search" placeholder="Search" aria-label="Search"> <input class="form-control me-2 my-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn" type="submit">Search</button> <button class="btn" type="submit">Search</button>
</form> </form>
</li> </li>
-->
{% if is_granted('ROLE_USER') %} {% if is_granted('ROLE_USER') %}
<li class="nav-item dropdown me-auto"> <li class="nav-item dropdown me-auto">
<button type="button" id="navbar-dropdown" data-bs-target="#dropdown-menu" data-bs-toggle="dropdown" <button type="button" id="navbar-dropdown" data-bs-target="#dropdown-menu" data-bs-toggle="dropdown"
@ -25,23 +27,23 @@
<div class="dropdown-menu dropdown-menu-dark dropdown-menu-end" id="dropdown-menu" <div class="dropdown-menu dropdown-menu-dark dropdown-menu-end" id="dropdown-menu"
aria-labelledby="navbar-dropdown"> aria-labelledby="navbar-dropdown">
<a class="dropdown-item" href="{{ path('user') }}"> <a class="dropdown-item" href="{{ path('app_profile_edit') }}">
<span class="fas fa-user" aria-hidden="true"></span> <span class="fa fa-lg fa-fw fa-user" aria-hidden="true"></span>
Profile</a> Profile</a>
<a class="dropdown-item" href="#"> <a class="dropdown-item" href="#">
<span class="fas fa-wrench" aria-hidden="true"></span> <span class="fa fa-lg fa-fw fa-wrench" aria-hidden="true"></span>
Settings</a> Settings</a>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
{% if is_granted('ROLE_ADMIN') %} {% if is_granted('ROLE_ADMIN') %}
<a class="dropdown-item" href="{{ path('admin') }}"> <a class="dropdown-item" href="{{ path('admin') }}">
<span class="fas fa-cog" aria-hidden="true"></span> <span class="fa fa-lg fa-fw fa-cog" aria-hidden="true"></span>
Administration Administration
</a> </a>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
{% endif %} {% endif %}
<a class="dropdown-item" href="{{ path('app_logout') }}"> <a class="dropdown-item" href="{{ path('app_logout') }}">
<span class="fas fa-sign-out-alt" aria-hidden="true"></span>&nbsp; <span class="fa fa-lg fa-fw fa-sign-out" aria-hidden="true"></span>&nbsp;
Logout Logout
</a> </a>
</div> </div>
@ -50,7 +52,7 @@
<li class="nav-item"> <li class="nav-item">
<a class="btn btn-primary button-login" href="{{ path('app_login') }}" role="button" <a class="btn btn-primary button-login" href="{{ path('app_login') }}" role="button"
id="buttonLogin"> id="buttonLogin">
<span class="fas fa-sign-out-alt me-2" aria-hidden="true"></span>Sign In <span class="fa fa-sign-in fa-lg fa-fw" aria-hidden="true"></span>Log In
</a> </a>
</li> </li>
{% endif %} {% endif %}
@ -59,4 +61,3 @@
</div> </div>
</nav> </nav>