diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-22 21:11:22 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-22 21:11:22 +0100 |
commit | bd9f08157cc10619e9bb9dace6df43090dde44a9 (patch) | |
tree | 840b9f6819758ad0493c116ef3def2936358c891 /src/WallabagBundle/Resources/views/Entry/entries.html.twig | |
parent | 9d50517ceaeadaba227ccdbaa43a5918abd16728 (diff) | |
download | wallabag-bd9f08157cc10619e9bb9dace6df43090dde44a9.tar.gz wallabag-bd9f08157cc10619e9bb9dace6df43090dde44a9.tar.zst wallabag-bd9f08157cc10619e9bb9dace6df43090dde44a9.zip |
article view, fav list, archive list
Diffstat (limited to 'src/WallabagBundle/Resources/views/Entry/entries.html.twig')
-rw-r--r-- | src/WallabagBundle/Resources/views/Entry/entries.html.twig | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/src/WallabagBundle/Resources/views/Entry/entries.html.twig b/src/WallabagBundle/Resources/views/Entry/entries.html.twig index f4d7a7ab..81177298 100644 --- a/src/WallabagBundle/Resources/views/Entry/entries.html.twig +++ b/src/WallabagBundle/Resources/views/Entry/entries.html.twig | |||
@@ -2,25 +2,32 @@ | |||
2 | 2 | ||
3 | {% block title "Unread" %} | 3 | {% block title "Unread" %} |
4 | 4 | ||
5 | {% block content_header '' %} | 5 | {% block menu %} |
6 | {% include "WallabagBundle::_menu.html.twig" %} | ||
7 | {% endblock %} | ||
6 | 8 | ||
7 | {% block content %} | 9 | {% block content %} |
8 | {% for entry in entries %} | ||
9 | <div id="entry-{{ entry.id|e }}" class="entrie"> | ||
10 | <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2> | ||
11 | {% if entry.content| readingTime > 0 %} | ||
12 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min</span></div> | ||
13 | {% else %} | ||
14 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur"><</small> 1 min</span></div> | ||
15 | {% endif %} | ||
16 | 10 | ||
17 | <ul class="tools links"> | 11 | {% if entries is empty %} |
18 | <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> | 12 | <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> |
19 | <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li> | 13 | {% else %} |
20 | <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans %}delete{% endtrans %}</span></a></li> | 14 | {% for entry in entries %} |
21 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.url | e | domainName }}</span></a></li> | 15 | <div id="entry-{{ entry.id|e }}" class="entrie"> |
22 | </ul> | 16 | <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2> |
23 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | 17 | {% if entry.content| readingTime > 0 %} |
24 | </div> | 18 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min</span></div> |
25 | {% endfor %} | 19 | {% else %} |
20 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur"><</small> 1 min</span></div> | ||
21 | {% endif %} | ||
22 | |||
23 | <ul class="tools links"> | ||
24 | <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> | ||
25 | <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li> | ||
26 | <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans %}delete{% endtrans %}</span></a></li> | ||
27 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.url | e | domainName }}</span></a></li> | ||
28 | </ul> | ||
29 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | ||
30 | </div> | ||
31 | {% endfor %} | ||
32 | {% endif %} | ||
26 | {% endblock %} | 33 | {% endblock %} |