]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
Disable translation in test
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / baggy / 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 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
bd9f0815
NL
23 {% if entries is empty %}
24 <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div>
25 {% else %}
26 {% for entry in entries %}
26864574 27 <div id="entry-{{ entry.id|e }}" class="entry">
bd9f0815 28 <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2>
26864574 29 {% if entry.readingTime > 0 %}
f37c9c33
TC
30 <div class="estimatedTime">
31 <span class="tool reading-time">
32 {% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %}
33 </span>
34 </div>
bd9f0815 35 {% else %}
f37c9c33
TC
36 <div class="estimatedTime">
37 <span class="tool reading-time">
38 {% trans with {'%inferior%': '<small class="inferieur">&lt;</small>'} %}estimated reading time: %inferior% 1 min{% endtrans %}
39 </span>
40 </div>
bd9f0815
NL
41 {% endif %}
42
43 <ul class="tools links">
905ae369
NL
44 <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>
45 <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 46 <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>
72fcaf8a 47 <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.domainName|removeWww }}</span></a></li>
bd9f0815 48 </ul>
b026d3b1
NL
49 {% if entry.previewPicture is null %}
50 <p>{{ entry.content|striptags|slice(0, 300) }}&hellip;</p>
51 {% else %}
52 <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" />
53 {% endif %}
bd9f0815
NL
54 </div>
55 {% endfor %}
56 {% endif %}
5def3f58
JB
57
58 <aside id="filter-form" class="">
59 <form method="get" action="{{ path('all') }}">
60 <h2>{% trans %}Filters{% endtrans %}</h2>
61 <a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">&times;</a>
62
63 <div id="filter-status" class="filter-group">
64 <div class="">
65 <label>{% trans %}Status{% endtrans %}</label>
66 </div>
67 <div class="input-field">
68 {{ form_widget(form.isArchived) }}
69 <label for="entry_filter_isArchived">{% trans %}Archived{% endtrans %}</label>
70 </div>
71
72 <div class="input-field">
73 {{ form_widget(form.isStarred) }}
74 <label for="entry_filter_isStarred">{% trans %}Starred{% endtrans %}</label>
75 </div>
5e98404d
JB
76
77 <div class="input-field">
78 {{ form_widget(form.previewPicture) }}
79 <label for="entry_filter_previewPicture">{% trans %}Has a preview picture{% endtrans %}</label>
80 </div>
5def3f58 81 </div>
d4ebe5c5
JB
82
83 <div id="filter-language" class="filter-group">
84 <label for="entry_filter_language">{% trans %}Language{% endtrans %}</label>
85 <div class="input-field ">
86 {{ form_widget(form.language) }}
87 </div>
88 </div>
89
5def3f58
JB
90 <div id="filter-reading-time" class="filter-group">
91 <div class="">
92 <label>{% trans %}Reading time in minutes{% endtrans %}</label>
93 </div>
94 <div class="input-field ">
95 <label for="entry_filter_readingTime_left_number">{% trans %}from{% endtrans %}</label>
5e98404d 96 {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
5def3f58
JB
97 </div>
98 <div class="input-field ">
99 <label for="entry_filter_readingTime_right_number">{% trans %}to{% endtrans %}</label>
100 {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
101 </div>
102 </div>
103
104 <div id="filter-domain-name" class="filter-group">
105 <label for="entry_filter_domainName">{% trans %}Domain name{% endtrans %}</label>
106 <div class="input-field ">
107 {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}
108 </div>
109 </div>
110
111 <div id="filter-creation-date" class="filter-group">
112 <div class="">
113 <label>{% trans %}Creation date{% endtrans %}</label>
114 </div>
115 <div class="input-field ">
116 <label for="entry_filter_createdAt_left_date" class="active">{% trans %}from{% endtrans %}</label>
117 {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
118 </div>
119 <div class="input-field ">
120 <label for="entry_filter_createdAt_right_date" class="active">{% trans %}to{% endtrans %}</label>
121 {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }}
122 </div>
123 </div>
124 <div id="filter-buttons" class="filter-group">
125
126 <div class="">
127 <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{% trans %}Clear{% endtrans %}</a>
128 </div>
129
130 <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{% trans %}Filters{% endtrans %}</button>
131
132 </div>
133 </form>
134 </aside>
135
9d50517c 136{% endblock %}