BirdNET-stream/www/templates/utils/nav-item.html.twig

7 lines
190 B
Twig
Executable File

<li>
<a class="{{ app.request.get('_route') matches '{' ~ route ~ '_*}' ? 'active' }}"
href="{{ path(route ~ "_i18n", { _locale: app.request.locale }) }}">
{{ text }}
</a>
</li>