2013-11-26 07:33:00 -05:00
|
|
|
{% extends layout %}
|
|
|
|
|
2014-01-09 15:20:35 -05:00
|
|
|
{% block menu %}
|
2013-12-15 05:14:36 -05:00
|
|
|
{% set count = entries|length %}
|
2013-12-13 16:42:21 -05:00
|
|
|
|
2014-01-09 09:25:31 -05:00
|
|
|
<nav role="navigation">
|
|
|
|
<ul>
|
2014-01-09 15:08:39 -05:00
|
|
|
<li><a href="/">{{ 'unread'|trans }}</a> ({{count}})</li>
|
2014-01-09 09:25:31 -05:00
|
|
|
<li>{{ 'starred'|trans }}</li>
|
2014-01-09 15:08:39 -05:00
|
|
|
<li><a href="/archive">{{ 'archive'|trans }}</a></li>
|
2014-01-09 15:20:35 -05:00
|
|
|
<li><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></li>
|
2014-01-09 09:25:31 -05:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2014-01-09 15:20:35 -05:00
|
|
|
{% endblock %}
|
2014-01-09 09:25:31 -05:00
|
|
|
|
2014-01-09 15:20:35 -05:00
|
|
|
{% block content %}
|
2013-12-13 16:42:21 -05:00
|
|
|
{% if entries is empty %}
|
2013-12-13 17:12:08 -05:00
|
|
|
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
|
2013-12-13 16:42:21 -05:00
|
|
|
{% else %}
|
2014-01-09 09:25:31 -05:00
|
|
|
<ul>
|
2013-12-13 16:42:21 -05:00
|
|
|
{% for entry in entries %}
|
2014-01-09 09:25:31 -05:00
|
|
|
<li>
|
|
|
|
<h2><a href="{{ path('view_entry', {'id': entry.id}) }}">{{ entry.title }}</a></h2>
|
|
|
|
<p>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
|
|
|
<ul>
|
|
|
|
<li><a href="{{ path('mark_entry_read', {'id': entry.id}) }}">{{ 'mark as read'|trans }}</a></li>
|
|
|
|
<li><a href="#">{{ 'star'|trans }}</a></li>
|
|
|
|
<li><a href="#">{{ 'delete'|trans }}</a></li>
|
|
|
|
<li><a href="{{ entry.url }}">{{ 'view original'|trans }}</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2013-12-13 16:42:21 -05:00
|
|
|
{% endfor %}
|
2014-01-09 09:25:31 -05:00
|
|
|
</ul>
|
2013-12-13 16:42:21 -05:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2013-12-13 11:21:50 -05:00
|
|
|
{% endblock %}
|