]>
Commit | Line | Data |
---|---|---|
53e12188 AD |
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 clearfix"> | |
9 | <div class="nb-results left">{{ entries.count }} {% trans %}entries{% endtrans %}</div> | |
10 | <ul class="pagination right"> | |
11 | {% for p in range(1, entries.nbPages) %} | |
12 | <li class="{{ currentPage == p ? 'active':'waves-effect'}}"> | |
13 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" >{{ p }}</a> | |
14 | </li> | |
15 | {% endfor %} | |
16 | </div> | |
17 | </div> | |
18 | {% endif %} | |
19 | {% endblock %} | |
20 | <br> | |
21 | {% if entries is empty %} | |
22 | <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> | |
23 | {% else %} | |
b17874a7 | 24 | <ul class="row data"> |
53e12188 AD |
25 | {% for entry in entries %} |
26 | <li id="entry-{{ entry.id|e }}" class="col l4 m6 s12"> | |
27 | <div class="card"> | |
28 | <div class="card-content"> | |
29 | <span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></span> | |
30 | {% if entry.content| readingTime > 0 %} | |
31 | <div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time: {% endtrans %} {{ entry.content| readingTime }} min</span></div> | |
32 | {% else %} | |
33 | <div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time: {% endtrans %} <small class="inferieur"><</small> 1 min</span></div> | |
34 | {% endif %} | |
35 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | |
36 | </div> | |
37 | <div class="card-action"> | |
38 | <span class="bold"><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %}: {{ entry.title|e }}" class="tool original grey-text"><span>{{ entry.url | e | domainName }}</span></a></bold> | |
39 | ||
40 | <ul class="tools links right"> | |
41 | <li> | |
42 | <a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool grey-text {% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"></a> | |
43 | <a title="{% trans %}toggle favorite{% endtrans %}" class="tool grey-text {% if entry.isStarred == 0 %}mdi-action-favorite-outline{% else %}mdi-action-favorite{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"></a> | |
44 | <a title="{% trans %}delete{% endtrans %}" class="tool grey-text delete mdi-action-delete " href="{{ path('delete_entry', { 'id': entry.id }) }}"></a> | |
45 | </li> | |
46 | </ul> | |
47 | </div> | |
48 | </div> | |
49 | </li> | |
50 | {% endfor %} | |
51 | </ul> | |
52 | {% endif %} | |
53 | {% endblock %} |