- <nav class="main-header navbar navbar-expand navbar-white navbar-light">
-
- <ul class="navbar-nav">
- <li class="nav-item">
- <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
- </li>
- </ul>
-
- <ul class="navbar-nav ml-auto">
- <li class="nav-item">
- {% block user_menu %}
- <div class="btn-group">
- <button class="btn btn-block dropdown-toggle" data-toggle="dropdown"
- data-placement="bottom">
- <i class="fa fa-user-alt"></i>
- <span class="user-name">{{ ea.user is null ? 'user.anonymous'|trans(domain = 'EasyAdminBundle') : ea.userMenu.name }}</span>
-
-
- </button>
- {% if ea.userMenu.items|length > 0 %}
- <div class="dropdown-menu">
- {% for item in ea.userMenu.items %}
- {% if item.isMenuSection %}
- <div class="dropdown-divider"></div>
- {% else %}
- <a href="{{ item.linkUrl }}"
- class="dropdown-item {{ item.cssClass }}"
- target="{{ item.linkTarget }}" rel="{{ item.linkRel }}"
- referrerpolicy="origin-when-cross-origin">
- {% if item.icon is not empty %}
- <i class="fa fa-{{ item.icon }}"></i>
- {% endif %}
- <span>{{ item.label }}</span>
- </a>
- {% endif %}
- {% endfor %}
- </div>
- {% endif %}
- </div>
- {% endblock user_menu %}
- </li>
-
- <li class="nav-item">
- <a href="{{ path(homepage_route()) }}" class="btn btn-block btn-outline-success" target="_blank"
- rel="noreferrer">
- Afficher le site
- </a>
- </li>
- </ul>
- </nav>
|