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

23 lines
530 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="index.php/view/{{entry.id}}">{{ entry.title }}</a>
<p>{{ entry.content|striptags|slice(0, 300) }}...</p>
</div>
{% endfor %}
<p><a href="index.php/add">{{ 'entry.add'|trans }}</a></p>
{% endif %}
{% endblock %}