1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-16 06:05:03 -05:00
wallabag/app/views/index.twig

23 lines
545 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 %}
<p><a href="index.php/add">{{ 'entry.add'|trans }}</a></p>
2013-12-13 16:42:21 -05:00
{% endif %}
2013-12-13 11:21:50 -05:00
{% endblock %}