]>
Commit | Line | Data |
---|---|---|
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | |
2 | ||
3 | {% block title "Unread" %} | |
4 | ||
5 | {% block content %} | |
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"> | |
11 | {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %} | |
12 | <li> | |
13 | <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'page': p})) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a> | |
14 | </li> | |
15 | {% endfor %} | |
16 | </div> | |
17 | </div> | |
18 | {% endif %} | |
19 | {% endblock %} | |
20 | ||
21 | {% if entries is empty %} | |
22 | <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> | |
23 | {% else %} | |
24 | <div><form action="{{ path('all') }}">{{ form_rest(form) }}<button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">Filter</button></form></div> | |
25 | {% for entry in entries %} | |
26 | <div id="entry-{{ entry.id|e }}" class="entry"> | |
27 | <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2> | |
28 | {% if entry.readingTime > 0 %} | |
29 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.readingTime }} min</span></div> | |
30 | {% else %} | |
31 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur"><</small> 1 min</span></div> | |
32 | {% endif %} | |
33 | ||
34 | <ul class="tools links"> | |
35 | <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> | |
36 | <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> | |
37 | <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> | |
38 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.domainName }}</span></a></li> | |
39 | </ul> | |
40 | <p>{{ entry.content|striptags|slice(0, 300) }}…</p> | |
41 | </div> | |
42 | {% endfor %} | |
43 | {% endif %} | |
44 | {% endblock %} |