1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-18 13:42:17 -05:00
wallabag/app/views/index.twig

23 lines
530 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>
2014-01-08 04:56:16 -05:00
<a href="index.php/view/{{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 %}