]>
Commit | Line | Data |
---|---|---|
ad4d1caa | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
9d50517c NL |
2 | |
3 | {% block title "Unread" %} | |
4 | ||
9d50517c | 5 | {% block content %} |
163eae0b | 6 | {% block pager %} |
163eae0b NL |
7 | <div class="results"> |
8 | <div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div> | |
d2fcbf5d JB |
9 | <div class="pagination"> |
10 | <a href="#" id="filter">{% trans %}Filter{% endtrans %}</a> | |
11 | {% if entries is not empty %} | |
12 | – | |
13 | {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %} | |
14 | <li> | |
15 | <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'page': p})) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a> | |
16 | </li> | |
17 | {% endfor %} | |
18 | {% endif %} | |
163eae0b NL |
19 | </div> |
20 | </div> | |
163eae0b | 21 | {% endblock %} |
9d50517c | 22 | |
d2fcbf5d JB |
23 | <div id="filter-form" class="messages info popup-form"> |
24 | <form method="get" action="{{ path('all') }}"> | |
25 | <h2>{% trans %}Filter{% endtrans %}</h2> | |
26 | <a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">×</a> | |
27 | {{ form_rest(form) }} | |
28 | <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{% trans %}Filter{% endtrans %}</button> | |
29 | </form> | |
30 | </div> | |
31 | ||
bd9f0815 NL |
32 | {% if entries is empty %} |
33 | <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> | |
34 | {% else %} | |
35 | {% for entry in entries %} | |
26864574 | 36 | <div id="entry-{{ entry.id|e }}" class="entry"> |
bd9f0815 | 37 | <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2> |
26864574 NL |
38 | {% if entry.readingTime > 0 %} |
39 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.readingTime }} min</span></div> | |
bd9f0815 NL |
40 | {% else %} |
41 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur"><</small> 1 min</span></div> | |
42 | {% endif %} | |
43 | ||
44 | <ul class="tools links"> | |
905ae369 NL |
45 | <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> |
46 | <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 | 47 | <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> |
c2257428 | 48 | <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> |
bd9f0815 | 49 | </ul> |
b026d3b1 NL |
50 | {% if entry.previewPicture is null %} |
51 | <p>{{ entry.content|striptags|slice(0, 300) }}…</p> | |
52 | {% else %} | |
53 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /> | |
54 | {% endif %} | |
bd9f0815 NL |
55 | </div> |
56 | {% endfor %} | |
57 | {% endif %} | |
9d50517c | 58 | {% endblock %} |