]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig
store domainName in database
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / Entry / entries.html.twig
CommitLineData
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">
bdf39ff1 11 {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
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 %}
26864574 24 <div><form>{{ form_rest(form) }}<button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">Filter</button></form></div>
bd9f0815 25 {% for entry in entries %}
26864574 26 <div id="entry-{{ entry.id|e }}" class="entry">
bd9f0815 27 <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2>
26864574
NL
28 {% if entry.readingTime > 0 %}
29 <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.readingTime }} min</span></div>
bd9f0815
NL
30 {% else %}
31 <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur">&lt;</small> 1 min</span></div>
32 {% endif %}
33
34 <ul class="tools links">
905ae369
NL
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>
163eae0b 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>
c2257428 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>
bd9f0815
NL
39 </ul>
40 <p>{{ entry.content|striptags|slice(0, 300) }}...</p>
41 </div>
42 {% endfor %}
43 {% endif %}
9d50517c 44{% endblock %}