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