1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-15 21:55:09 -05:00
wallabag/app/views/index.twig

23 lines
549 B
Twig
Raw Normal View History

2013-11-26 07:33:00 -05:00
{% extends layout %}
{% block content %}
{% 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 %}
{{ 'msg.results'|transchoice(count) }}
2013-12-13 16:42:21 -05:00
{% for entry in entries %}
<div>
<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>
</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 %}