]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/WallabagBundle/Resources/views/Entry/entries.html.twig
8117729801d6c105c60d07dd64e7c91ac2da1497
[github/wallabag/wallabag.git] / src / WallabagBundle / Resources / views / Entry / entries.html.twig
1 {% extends "WallabagBundle::layout.html.twig" %}
2
3 {% block title "Unread" %}
4
5 {% block menu %}
6 {% include "WallabagBundle::_menu.html.twig" %}
7 {% endblock %}
8
9 {% block content %}
10
11 {% if entries is empty %}
12 <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div>
13 {% else %}
14 {% for entry in entries %}
15 <div id="entry-{{ entry.id|e }}" class="entrie">
16 <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2>
17 {% if entry.content| readingTime > 0 %}
18 <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min</span></div>
19 {% else %}
20 <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur">&lt;</small> 1 min</span></div>
21 {% endif %}
22
23 <ul class="tools links">
24 <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="./?action=toggle_archive&amp;id={{ entry.id|e }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li>
25 <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="./?action=toggle_fav&amp;id={{ entry.id|e }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li>
26 <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="./?action=delete&amp;id={{ entry.id|e }}"><span>{% trans %}delete{% endtrans %}</span></a></li>
27 <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>
28 </ul>
29 <p>{{ entry.content|striptags|slice(0, 300) }}...</p>
30 </div>
31 {% endfor %}
32 {% endif %}
33 {% endblock %}