mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-18 05:32:23 -05:00
[add] tools for each entry on homepage
This commit is contained in:
parent
01ac894b74
commit
297dba6d90
@ -3,18 +3,31 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% set count = entries|length %}
|
{% set count = entries|length %}
|
||||||
|
|
||||||
|
<nav role="navigation">
|
||||||
|
<ul>
|
||||||
|
<li>{{ 'unread'|trans }} ({{count}})</li>
|
||||||
|
<li>{{ 'starred'|trans }}</li>
|
||||||
|
<li>{{ 'archive'|trans }}</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
{% if entries is empty %}
|
{% if entries is empty %}
|
||||||
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
|
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ 'msg.results'|transchoice(count) }}
|
<ul>
|
||||||
{% for entry in entries %}
|
{% for entry in entries %}
|
||||||
<div>
|
<li>
|
||||||
<a href="{{ path('view_entry', {'id': entry.id}) }}">{{ entry.title }}</a>
|
<h2><a href="{{ path('view_entry', {'id': entry.id}) }}">{{ entry.title }}</a></h2>
|
||||||
|
<p>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
||||||
<p>{{ entry.content|striptags|slice(0, 300) }}...</p>
|
<ul>
|
||||||
|
<li><a href="{{ path('mark_entry_read', {'id': entry.id}) }}">{{ 'mark as read'|trans }}</a></li>
|
||||||
</div>
|
<li><a href="#">{{ 'star'|trans }}</a></li>
|
||||||
|
<li><a href="#">{{ 'delete'|trans }}</a></li>
|
||||||
|
<li><a href="{{ entry.url }}">{{ 'view original'|trans }}</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
<p><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></p>
|
<p><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></p>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user