1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-19 06:02:25 -05:00
wallabag/app/views/index.twig

23 lines
505 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>
2013-12-13 16:42:21 -05:00
{{ entry.id }} - {{ entry.title }}
<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 %}