2019-08-13 11:22:30 +02:00
|
|
|
{% trans_default_domain 'fediplan' %}
|
2019-08-08 17:29:59 +02:00
|
|
|
<header>
|
|
|
|
<!-- Fixed navbar -->
|
|
|
|
<nav class="navbar navbar-expand-md navbar-light fixed-top bg-light">
|
2019-08-10 16:04:33 +02:00
|
|
|
<a class="navbar-brand" href="#">FediPlan</a>
|
2019-08-08 17:29:59 +02:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
2019-08-10 15:30:54 +02:00
|
|
|
{% if not is_granted('ROLE_USER') %}
|
2019-08-08 17:29:59 +02:00
|
|
|
<li class="nav-item {% if app.request.attributes.get('_route') == 'index' %} active {% endif %}">
|
2019-08-13 11:22:30 +02:00
|
|
|
<a class="nav-link" href="{{ path('index') }}">{{ 'common.login'|trans }} <span class="sr-only">(current)</span></a>
|
2019-08-08 17:29:59 +02:00
|
|
|
</li>
|
2019-08-10 15:30:54 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if is_granted('ROLE_USER') %}
|
2019-08-13 11:24:36 +02:00
|
|
|
<li class="nav-item {% if app.request.attributes.get('_route') == 'schedule' %}active {% endif %}">
|
2019-08-13 11:22:30 +02:00
|
|
|
<a class="nav-link" href="{{ path('schedule') }}">{{ 'common.schedule'|trans }}</a>
|
2019-08-08 17:29:59 +02:00
|
|
|
</li>
|
2019-08-11 18:24:07 +02:00
|
|
|
|
2019-08-08 17:29:59 +02:00
|
|
|
<li class="nav-item {% if app.request.attributes.get('_route') == 'scheduled' %} active {% endif %}">
|
2019-08-13 11:22:30 +02:00
|
|
|
<a class="nav-link" href="{{ path('scheduled') }}">{{ 'common.scheduled'|trans }}</a>
|
2019-08-08 17:29:59 +02:00
|
|
|
</li>
|
2019-08-11 18:24:07 +02:00
|
|
|
|
2019-08-08 17:29:59 +02:00
|
|
|
<li class="nav-item">
|
2019-08-13 11:22:30 +02:00
|
|
|
<a class="nav-link" href="{{ path('logout') }}" tabindex="-1" >{{ 'common.logout'|trans }}</a>
|
2019-08-08 17:29:59 +02:00
|
|
|
</li>
|
2019-08-10 15:38:12 +02:00
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="https://fedilab.app/page/donations/" tabindex="-1" >Support my work</a>
|
|
|
|
</li>
|
2019-08-10 15:30:54 +02:00
|
|
|
{% endif %}
|
2019-08-08 17:29:59 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|