mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-17 21:22:15 -05:00
[add] template for archive
This commit is contained in:
parent
839b6ea2c4
commit
1cc69d6936
35
app/views/archive.twig
Normal file
35
app/views/archive.twig
Normal file
@ -0,0 +1,35 @@
|
||||
{% extends layout %}
|
||||
|
||||
{% block content %}
|
||||
{% set count = entries|length %}
|
||||
|
||||
<nav role="navigation">
|
||||
<ul>
|
||||
<li><a href="/">{{ 'unread'|trans }}</a></li>
|
||||
<li>{{ 'starred'|trans }}</li>
|
||||
<li><a href="/archive">{{ 'archive'|trans }}</a> ({{count}})</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
{% if entries is empty %}
|
||||
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
|
||||
{% else %}
|
||||
<ul>
|
||||
{% for entry in entries %}
|
||||
<li>
|
||||
<h2><a href="{{ path('view_entry', {'id': entry.id}) }}">{{ entry.title }}</a></h2>
|
||||
<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>
|
||||
<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 %}
|
||||
</ul>
|
||||
<p><a href="{{ path('add') }}">{{ 'entry.add'|trans }}</a></p>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
@ -5,9 +5,9 @@
|
||||
|
||||
<nav role="navigation">
|
||||
<ul>
|
||||
<li>{{ 'unread'|trans }} ({{count}})</li>
|
||||
<li><a href="/">{{ 'unread'|trans }}</a> ({{count}})</li>
|
||||
<li>{{ 'starred'|trans }}</li>
|
||||
<li>{{ 'archive'|trans }}</li>
|
||||
<li><a href="/archive">{{ 'archive'|trans }}</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user