2013-11-26 07:33:00 -05:00
|
|
|
{% extends layout %}
|
|
|
|
|
|
|
|
{% block content %}
|
2013-12-15 05:14:36 -05:00
|
|
|
{% set count = entries|length %}
|
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 %}
|
2013-12-15 05:14:36 -05:00
|
|
|
{{ 'msg.results'|transchoice(count) }}
|
2013-12-13 16:42:21 -05:00
|
|
|
{% for entry in entries %}
|
2013-12-15 05:14:36 -05:00
|
|
|
<div>
|
2014-01-08 05:17:46 -05:00
|
|
|
<a href="{{ path('view_entry', {'id': entry.id}) }}">{{ entry.title }}</a>
|
2013-12-13 16:42:21 -05:00
|
|
|
|
|
|
|
<p>{{ entry.content|striptags|slice(0, 300) }}...</p>
|
|
|
|
|
2013-12-15 05:14:36 -05:00
|
|
|
</div>
|
2013-12-13 16:42:21 -05:00
|
|
|
{% endfor %}
|
2014-01-09 08:27:22 -05:00
|
|
|
<p><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></p>
|
2013-12-13 16:42:21 -05:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2013-12-13 11:21:50 -05:00
|
|
|
{% endblock %}
|