1
0
mirror of https://github.com/moparisthebest/wallabag synced 2025-01-10 05:08:05 -05:00
wallabag/app/views/_menu.twig

11 lines
577 B
Twig
Raw Normal View History

{% if entries is defined %}
{% set count = entries|length %}
{% endif %}
<nav role="navigation">
<ul>
<li><a href="/">{{ 'unread'|trans }}</a>{% if app.request.requesturi == '/' %} ({{count}}){% endif %}</li>
<li><a href="/bookmarks">{{ 'bookmarks'|trans }}</a>{% if app.request.requesturi == '/bookmarks' %} ({{count}}){% endif %}</li>
<li><a href="/archive">{{ 'archive'|trans }}</a>{% if app.request.requesturi == '/archive' %} ({{count}}){% endif %}</li>
<li><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></li>
</ul>
</nav>