2014-01-15 07:23:44 -05:00
|
|
|
{% if entries is defined %}
|
|
|
|
{% set count = entries|length %}
|
|
|
|
{% endif %}
|
|
|
|
<header>
|
|
|
|
<nav role="navigation">
|
|
|
|
<a class="logo" href="/">poche</a>
|
|
|
|
<ul>
|
2014-01-17 11:19:43 -05:00
|
|
|
<li {% if app.request.requesturi == '/' %}class="active"{% endif %}><a href="/">{{ 'unread'|trans }}</a>{% if app.request.requesturi == '/' %} (<span id="counter">{{count}}</span>){% endif %}</li>
|
2014-01-15 07:23:44 -05:00
|
|
|
<li {% if app.request.requesturi == '/bookmarks' %}class="active"{% endif %}><a href="/bookmarks">{{ 'bookmarks'|trans }}</a></li>
|
|
|
|
<li {% if app.request.requesturi == '/archive' %}class="active"{% endif %}><a href="/archive">{{ 'archive'|trans }}</a></li>
|
|
|
|
<li {% if app.request.requesturi == '/add' %}class="active"{% endif %}><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></li>
|
2014-01-23 07:09:20 -05:00
|
|
|
<li><a href="{{ path('logout') }}">{{ 'logout'|trans }}</a></li>
|
2014-01-15 07:23:44 -05:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|