]>
Commit | Line | Data |
---|---|---|
ad4d1caa | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
9d50517c NL |
2 | |
3 | {% block title "Unread" %} | |
4 | ||
bd9f0815 | 5 | {% block menu %} |
ad4d1caa | 6 | {% include "WallabagCoreBundle::_menu.html.twig" %} |
bd9f0815 | 7 | {% endblock %} |
9d50517c NL |
8 | |
9 | {% block content %} | |
163eae0b NL |
10 | {% block pager %} |
11 | {% if entries is not empty %} | |
12 | <div class="results"> | |
13 | <div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div> | |
14 | <div class="pagination"> | |
15 | {% for p in range(1, entries.count) %} | |
16 | <li> | |
17 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}">{{ p }}</a> | |
18 | </li> | |
19 | {% endfor %} | |
20 | </div> | |
21 | </div> | |
22 | {% endif %} | |
23 | {% endblock %} | |
9d50517c | 24 | |
bd9f0815 NL |
25 | {% if entries is empty %} |
26 | <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> | |
27 | {% else %} | |
28 | {% for entry in entries %} | |
29 | <div id="entry-{{ entry.id|e }}" class="entrie"> | |
30 | <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2> | |
31 | {% if entry.content| readingTime > 0 %} | |
32 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min</span></div> | |
33 | {% else %} | |
34 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur"><</small> 1 min</span></div> | |
35 | {% endif %} | |
36 | ||
37 | <ul class="tools links"> | |
163eae0b NL |
38 | <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> |
39 | <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li> | |
40 | <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}delete{% endtrans %}</span></a></li> | |
bd9f0815 NL |
41 | <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> |
42 | </ul> | |
43 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | |
44 | </div> | |
45 | {% endfor %} | |
46 | {% endif %} | |
9d50517c | 47 | {% endblock %} |