1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-15 21:55:09 -05:00
wallabag/app/views/_menu.twig
2014-01-14 14:58:55 +01:00

11 lines
577 B
Twig

{% 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>