1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-18 05:32:23 -05:00

Display entry content on the index

This commit is contained in:
Vincent Jousse 2013-12-13 22:42:21 +01:00
parent 14330bfa68
commit dfefa7016d

View File

@ -1,8 +1,19 @@
{% extends layout %}
{% block content %}
{% for entry in entries %}
{{ entry.id }} - {{ entry.title }}
{% endfor %}
<p><a href="index.php/add">poche a new link</a></p>
{% if entries is empty %}
<div class="messages warning"><p>No link available here!</p></div>
{% else %}
{% for entry in entries %}
{{ entry.id }} - {{ entry.title }}
<p>{{ entry.content|striptags|slice(0, 300) }}...</p>
{% endfor %}
<p><a href="index.php/add">poche a new link</a></p>
{% endif %}
{% endblock %}