templates/headermenu.html.twig line 1

Open in your IDE?
  1. {# HeaderMenuTemplate #}
  2. <nav class="navbar navbar-inverse navbar-fixed-top">
  3.     <div class="container-fluid">
  4.         <!-- Brand and toggle get grouped for better mobile display -->
  5.         <div class="navbar-header">
  6.             <a class="navbar-brand" href="/">THEA PRO</a>
  7.         </div>
  8.         <!-- Collect the nav links, forms, and other content for toggling -->
  9.         <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  10.             <ul class="nav navbar-nav navbar-right">
  11.                 <li class="dropdown">
  12.                     {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
  13.                         <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> {{app.user.firstname}} {{ app.user.name }} <span class="caret"></span></a>
  14.                         <ul class="dropdown-menu">
  15.                             <li><a href="{{ path('user_profile') }}">{% trans%}Profile{% endtrans%}</a></li>
  16.                            {% if is_granted("ROLE_ADMIN") %} 
  17.                             <li><a href="{{ path('user_editpassword') }}">{% trans%}Change password{% endtrans%}</a></li>
  18.                             {% endif %}
  19.                             <li><a href="{{ path('app_logout') }}">{% trans%}Logout{% endtrans%}</a></li>
  20.                         </ul>
  21.                     {% endif %}
  22.                 </li>
  23.             </ul>
  24.         </div><!-- /.navbar-collapse -->
  25.     </div><!-- /.container -->
  26. </nav>