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

7 lines
190 B
Twig
Raw Permalink Normal View History

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