2023-04-02 19:34:00 +02:00
|
|
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark" style="z-index: 1;">
|
|
|
|
<div class="container-fluid">
|
2023-04-04 01:05:22 +02:00
|
|
|
<a title="BlueLinked Eco System" class="navbar-brand" href="{{ path('home') }}">SNIPS</a>
|
2023-04-02 19:34:00 +02:00
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar"
|
|
|
|
aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbar">
|
|
|
|
<ul class="navbar-nav me-auto mb-2 mb-md-0">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ path('home') }}">Home</a>
|
|
|
|
</li>
|
2023-04-05 00:55:02 +02:00
|
|
|
|
|
|
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ path('snip_index') }}">My snips</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ path('snip_new') }}">New snip</a>
|
|
|
|
</li>
|
2023-04-06 20:30:11 +02:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ path('snip_public') }}">Public snips</a>
|
|
|
|
</li>
|
2023-04-05 00:55:02 +02:00
|
|
|
{% endif %}
|
2023-04-02 19:34:00 +02:00
|
|
|
</ul>
|
|
|
|
<ul class="navbar-nav my-2 my-lg-0">
|
|
|
|
{% if app.environment == 'dev' %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="btn navbar-text bg-danger" href="#">dev</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
|
|
|
<span class="nav-item navbar-text mr-sm-2">Logged in as</span>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ path('user_profile') }}">{{ app.user.username }}</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ path('logout') }}">Logout</a>
|
|
|
|
</li>
|
2023-04-03 22:19:28 +02:00
|
|
|
{% else %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ path('register') }}">Register</a>
|
|
|
|
</li>
|
2023-04-02 19:34:00 +02:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|