1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-18 13:42:17 -05:00
wallabag/app/views/index.twig
2014-01-09 14:27:22 +01:00

23 lines
549 B
Twig

{% extends layout %}
{% block content %}
{% set count = entries|length %}
{% if entries is empty %}
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
{% else %}
{{ 'msg.results'|transchoice(count) }}
{% for entry in entries %}
<div>
<a href="{{ path('view_entry', {'id': entry.id}) }}">{{ entry.title }}</a>
<p>{{ entry.content|striptags|slice(0, 300) }}...</p>
</div>
{% endfor %}
<p><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></p>
{% endif %}
{% endblock %}