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:
parent
14330bfa68
commit
dfefa7016d
@ -1,8 +1,19 @@
|
|||||||
{% extends layout %}
|
{% extends layout %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% for entry in entries %}
|
|
||||||
{{ entry.id }} - {{ entry.title }}
|
{% if entries is empty %}
|
||||||
{% endfor %}
|
<div class="messages warning"><p>No link available here!</p></div>
|
||||||
<p><a href="index.php/add">poche a new link</a></p>
|
{% 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 %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user