]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
Remove fr part
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / entries.html.twig
CommitLineData
53e12188
AD
1{% extends "WallabagCoreBundle::layout.html.twig" %}
2
b1a65df9
NL
3{% block title %}
4 {% set currentRoute = app.request.attributes.get('_route') %}
5
308db016 6 {% if currentRoute == 'starred' %}
0d42217e 7 {{ 'entry.page_titles.starred'|trans }}
b1a65df9 8 {% elseif currentRoute == 'archive' %}
0d42217e 9 {{ 'entry.page_titles.archived'|trans }}
89659c9e 10 {% elseif currentRoute == 'all' %}
0d42217e 11 {{ 'entry.page_titles.filtered'|trans }}
308db016 12 {% else %}
0d42217e 13 {{ 'entry.page_titles.unread'|trans }}
b1a65df9
NL
14 {% endif %}
15
16{% endblock %}
53e12188
AD
17
18{% block content %}
09e5b939 19 {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
428af5a8
NL
20 <br />
21 <ul class="row data">
22 {% for entry in entries %}
23 <li id="entry-{{ entry.id|e }}" class="col l4 m6 s12">
24 <div class="card">
451bad02
AD
25
26 <div class="card-body">
27 {% if not entry.previewPicture is null %}
28 <div class="card-image waves-effect waves-block waves-light">
29 <div class="preview activator" style="background-image: url({{ entry.previewPicture }})"></div>
30 </div>
e610143f 31 {% endif %}
451bad02
AD
32
33 <div class="card-content">
34 {% if not entry.previewPicture is null %}
9b404225 35 <i class="card-title grey-text text-darken-4 activator mdi-navigation-more-horiz right"></i>
451bad02
AD
36 {% endif %}
37
1b8b3859 38 <span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|striptags|slice(0, 42)|raw }}</a></span>
451bad02 39
07965324
JB
40 <div class="estimatedTime grey-text">
41 <span class="tool reading-time">
bca54859
NL
42 {% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
43 {% if readingTime > 0 %}
4a749cad 44 {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }}
f37c9c33 45 {% else %}
0d42217e 46 {{ 'entry.list.reading_time_less_one_minute'|trans|raw }}
f37c9c33 47 {% endif %}
07965324
JB
48 </span>
49 </div>
451bad02
AD
50
51 {% if entry.previewPicture is null %}
07965324 52 <p>{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;</p>
451bad02
AD
53 {% endif %}
54 </div>
428af5a8 55 </div>
451bad02
AD
56
57 {% if not entry.previewPicture is null %}
58 <div class="card-reveal">
59 <i class="card-title grey-text text-darken-4 mdi-card-close right"></i>
60 <span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></span>
61
07965324
JB
62 <div class="estimatedTime grey-text">
63 <span class="tool reading-time">
7ead8a0d 64 {% if readingTime > 0 %}{{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }}{% else %}{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}{% endif %}
07965324
JB
65 </span>
66 </div>
451bad02 67
07965324 68 <p>{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;</p>
451bad02
AD
69 </div>
70 {% endif %}
71
428af5a8 72 <div class="card-action">
0d42217e
JB
73 <span class="bold">
74 <a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.list.original_article'|trans }}: {{ entry.title|e }} - {{ entry.domainName|removeWww }}" class="tool original grey-text"><span>{{ entry.domainName|removeWww|truncate(18) }}</span></a>
75 </bold>
53e12188 76
428af5a8
NL
77 <ul class="tools links right">
78 <li>
0d42217e
JB
79 <a title="{{ 'entry.list.toogle_as_read'|trans }}" class="tool grey-text {% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"></a>
80 <a title="{{ 'entry.list.toogle_as_star'|trans }}" 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>
81 <a title="{{ 'entry.list.delete'|trans }}" class="tool grey-text delete mdi-action-delete " href="{{ path('delete_entry', { 'id': entry.id }) }}"></a>
428af5a8
NL
82 </li>
83 </ul>
53e12188 84 </div>
428af5a8
NL
85 </div>
86 </li>
87 {% endfor %}
88 </ul>
392f4a26 89
03690d13
TC
90 <!-- Export -->
91 <div id="export" class="side-nav fixed right-aligned">
92 {% set currentRoute = app.request.attributes.get('_route') %}
93 {% if currentRoute == 'homepage' %}
94 {% set currentRoute = 'unread' %}
95 {% endif %}
0d42217e 96 <h4 class="center">{{ 'entry.list.export_title'|trans }}</h4>
03690d13 97 <ul>
eb15061d
JB
98 {% if craue_setting('export_epub') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'epub' }) }}">EPUB</a></li>{% endif %}
99 {% if craue_setting('export_mobi') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'mobi' }) }}">MOBI</a></li>{% endif %}
100 {% if craue_setting('export_pdf') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'pdf' }) }}">PDF</a></li>{% endif %}
101 {% if craue_setting('export_csv') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'json' }) }}">JSON</a></li>{% endif %}
102 {% if craue_setting('export_json') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'csv' }) }}">CSV</a></li>{% endif %}
103 {% if craue_setting('export_txt') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'txt' }) }}">TXT</a></li>{% endif %}
104 {% if craue_setting('export_xml') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'xml' }) }}">XML</a></li>{% endif %}
03690d13
TC
105 </ul>
106 </div>
107
392f4a26
AD
108 <!-- Filters -->
109 <div id="filters" class="side-nav fixed right-aligned">
89659c9e 110 <form action="{{ path('all') }}">
392f4a26 111
0d42217e 112 <h4 class="center">{{ 'entry.filters.title'|trans }}</h4>
392f4a26
AD
113
114 <div class="row">
db96045a 115 <div class="col s12">
0d42217e 116 <label>{{ 'entry.filters.status_label'|trans }}</label>
db96045a
JB
117 </div>
118
119 <div class="input-field col s6 with-checkbox">
120 {{ form_widget(form.isArchived) }}
0d42217e 121 {{ form_label(form.isArchived) }}
db96045a 122 </div>
392f4a26 123
db96045a
JB
124 <div class="input-field col s6 with-checkbox">
125 {{ form_widget(form.isStarred) }}
0d42217e 126 {{ form_label(form.isStarred) }}
db96045a 127 </div>
89659c9e 128
733b2cf1
DB
129 <div class="input-field col s6 with-checkbox">
130 {{ form_widget(form.isUnread) }}
131 {{ form_label(form.isUnread) }}
132 </div>
133
89659c9e 134 <div class="col s12">
0d42217e 135 <label>{{ 'entry.filters.preview_picture_help'|trans }}</label>
89659c9e 136 </div>
a3bcd60a 137
db96045a 138 <div class="input-field col s12 with-checkbox">
a3bcd60a 139 {{ form_widget(form.previewPicture) }}
0d42217e 140 {{ form_label(form.previewPicture) }}
a3bcd60a
NL
141 </div>
142
d4ebe5c5 143 <div class="col s12">
0d42217e 144 {{ form_label(form.language) }}
89659c9e
NL
145 </div>
146
d4ebe5c5
JB
147 <div class="input-field col s12">
148 {{ form_widget(form.language) }}
89659c9e
NL
149 </div>
150
392f4a26 151 <div class="col s12">
0d42217e 152 {{ form_label(form.readingTime) }}
392f4a26 153 </div>
392f4a26 154 <div class="input-field col s6">
bac5a345 155 {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
0d42217e 156 <label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label>
392f4a26 157 </div>
392f4a26 158 <div class="input-field col s6">
bac5a345 159 {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
0d42217e 160 <label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label>
392f4a26
AD
161 </div>
162
e6439923 163 <div class="input-field col s12">
0d42217e
JB
164 {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}
165 {{ form_label(form.domainName) }}
bdd23b07
NL
166 </div>
167
168 <div class="col s12">
0d42217e 169 {{ form_label(form.createdAt) }}
790d18a3 170 </div>
790d18a3 171
72ea6dd1
NL
172 <div class="input-field col s6">
173 {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
0d42217e 174 <label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label>
72ea6dd1
NL
175 </div>
176 <div class="input-field col s6">
177 {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }}
0d42217e 178 <label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label>
72ea6dd1
NL
179 </div>
180
392f4a26 181 <div class="col s6">
0d42217e 182 <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a>
392f4a26
AD
183 </div>
184
185 <div class="col s6">
0d42217e 186 <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button>
392f4a26 187 </div>
392f4a26
AD
188 </div>
189
190 </form>
191 </div>
09e5b939 192 {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
53e12188 193{% endblock %}