1 {% extends "WallabagCoreBundle::layout.html.twig" %}
4 {% set currentRoute = app.request.attributes.get('_route') %}
6 {% if currentRoute == 'starred' %}
7 {% trans %}Starred{% endtrans %}
8 {% elseif currentRoute == 'archive' %}
9 {% trans %}Archive{% endtrans %}
11 {% trans %}Unread{% endtrans %}
18 {% if entries is not empty %}
19 <div class="results clearfix">
20 <div class="nb-results left">{{ entries.count }} {% trans %}entries{% endtrans %}</div>
21 <div class="left"><form>{{ form_rest(form) }}<button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">Filter</button></form></div>
22 <ul class="pagination right">
23 {% for p in range(1, entries.nbPages) %}
24 <li class="{{ currentPage == p ? 'active':'waves-effect'}}">
25 <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" >{{ p }}</a>
33 {% if entries is empty %}
34 <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div>
37 {% for entry in entries %}
38 <li id="entry-{{ entry.id|e }}" class="col l4 m6 s12">
40 <div class="card-content">
41 <span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></span>
42 {% if entry.readingTime > 0 %}
43 <div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time: {% endtrans %} {{ entry.readingTime }} min</span></div>
45 <div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time: {% endtrans %} <small class="inferieur"><</small> 1 min</span></div>
47 <p>{{ entry.content|striptags|slice(0, 300) }}...</p>
49 <div class="card-action">
50 <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>
52 <ul class="tools links right">
54 <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>
55 <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>
56 <a title="{% trans %}delete{% endtrans %}" class="tool grey-text delete mdi-action-delete " href="{{ path('delete_entry', { 'id': entry.id }) }}"></a>