templates/menu.html.twig line 1

Open in your IDE?
  1. <nav class="navbar navbar-expand-lg navbar-dark navbar-bg-predator">
  2.     <div class="container-fluid">
  3.         <a class="navbar-brand" href="#">
  4.             <img class="logo_predator" src="{{ asset('images/Predator_hrz_white.png') }}"/>
  5.         </a>
  6.         <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
  7.             <span class="navbar-toggler-icon"></span>
  8.         </button>
  9.         <div class="collapse navbar-collapse" id="navbarText">
  10.             <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
  11.                 {% if app.user is not null %}
  12.                 <li class="nav-item">
  13.                     <a class="nav-link link" href="{{ path('instructions') }}">{% trans %}How to install{% endtrans %}</a>
  14.                 </li>
  15.                 <li class="nav-item">
  16.                     <a class="nav-link discord_username" href="#">
  17.                         {% if app.user.avatar is not null %}
  18.                             <img class="discord_avatar" src="https://cdn.discordapp.com/avatars/{{ app.user.discordId }}/{{ app.user.avatar }}.png"/>
  19.                         {% else %}
  20.                             <img class="discord_avatar" src="{{ asset('images/discord.png') }}"/>
  21.                         {% endif %}
  22.                         {{ app.user.discordUsername }}
  23.                     </a>
  24.                 </li>
  25.                 <li class="nav-item">
  26.                     <a class="nav-link" href="/logout">{% trans %}Logout{% endtrans %}</a>
  27.                 </li>
  28.                 {% endif %}
  29.             </ul>
  30.         </div>
  31.     </div>
  32. </nav>