]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
Merge remote-tracking branch 'origin/master' into 2.2
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / entries.html.twig
1 {% extends "WallabagCoreBundle::layout.html.twig" %}
2
3 {% block title %}
4 {% set currentTag = '' %}
5 {% if tag is defined %}
6 {% set currentTag = tag %}
7 {% endif %}
8 {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %}
9 {% endblock %}
10
11 {% block content %}
12 <div class="results clearfix">
13 <div class="nb-results left">
14 {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
15 </div>
16 {% if entries.getNbPages > 1 %}
17 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
18 {% endif %}
19 </div>
20
21 <br />
22 <ul class="row data">
23 {% for entry in entries %}
24 <li id="entry-{{ entry.id|e }}" class="col l3 m6 s12">
25 {% if entry.previewPicture is null %}
26 {% include "@WallabagCore/themes/material/Entry/_card_no_preview.html.twig" with {'entry': entry} only %}
27 {% elseif not entry.previewPicture is null and entry.mimetype starts with 'image/' %}
28 {% include "@WallabagCore/themes/material/Entry/_card_full_image.html.twig" with {'entry': entry} only %}
29 {% elseif not entry.previewPicture is null %}
30 {% include "@WallabagCore/themes/material/Entry/_card_preview.html.twig" with {'entry': entry} only %}
31 {% endif %}
32 </li>
33 {% endfor %}
34 </ul>
35
36 {% if entries.getNbPages > 1 %}
37 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
38 {% endif %}
39
40 <!-- Export -->
41 <div id="export" class="side-nav fixed right-aligned">
42 {% set currentRoute = app.request.attributes.get('_route') %}
43 {% set currentTag = '' %}
44 {% if tag is defined %}
45 {% set currentTag = tag %}
46 {% endif %}
47 {% if currentRoute == 'homepage' %}
48 {% set currentRoute = 'unread' %}
49 {% endif %}
50 <h4 class="center">{{ 'entry.list.export_title'|trans }}</h4>
51 <ul>
52 {% if craue_setting('export_epub') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'epub', 'tag' : currentTag }) }}">EPUB</a></li>{% endif %}
53 {% if craue_setting('export_mobi') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'mobi', 'tag' : currentTag }) }}">MOBI</a></li>{% endif %}
54 {% if craue_setting('export_pdf') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'pdf', 'tag' : currentTag }) }}">PDF</a></li>{% endif %}
55 {% if craue_setting('export_csv') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'json', 'tag' : currentTag }) }}">JSON</a></li>{% endif %}
56 {% if craue_setting('export_json') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'csv', 'tag' : currentTag }) }}">CSV</a></li>{% endif %}
57 {% if craue_setting('export_txt') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'txt', 'tag' : currentTag }) }}">TXT</a></li>{% endif %}
58 {% if craue_setting('export_xml') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'xml', 'tag' : currentTag }) }}">XML</a></li>{% endif %}
59 </ul>
60 </div>
61
62 <!-- Filters -->
63 {% if form is not null %}
64 <div id="filters" class="side-nav fixed right-aligned">
65 <form action="{{ path('all') }}">
66
67 <h4 class="center">{{ 'entry.filters.title'|trans }}</h4>
68
69 <div class="row">
70 <div class="col s12">
71 <label>{{ 'entry.filters.status_label'|trans }}</label>
72 </div>
73
74 <div class="input-field col s6 with-checkbox">
75 {{ form_widget(form.isArchived) }}
76 {{ form_label(form.isArchived) }}
77 </div>
78
79 <div class="input-field col s6 with-checkbox">
80 {{ form_widget(form.isStarred) }}
81 {{ form_label(form.isStarred) }}
82 </div>
83
84 <div class="input-field col s6 with-checkbox">
85 {{ form_widget(form.isUnread) }}
86 {{ form_label(form.isUnread) }}
87 </div>
88
89 <div class="col s12">
90 <label>{{ 'entry.filters.preview_picture_help'|trans }}</label>
91 </div>
92
93 <div class="input-field col s12 with-checkbox">
94 {{ form_widget(form.previewPicture) }}
95 {{ form_label(form.previewPicture) }}
96 </div>
97
98 <div class="col s12">
99 {{ form_label(form.language) }}
100 </div>
101
102 <div class="input-field col s12">
103 {{ form_widget(form.language) }}
104 </div>
105
106 <div class="col s12">
107 {{ form_label(form.httpStatus) }}
108 </div>
109
110 <div class="input-field col s12">
111 {{ form_widget(form.httpStatus) }}
112 </div>
113
114 <div class="col s12">
115 {{ form_label(form.readingTime) }}
116 </div>
117 <div class="input-field col s6">
118 {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
119 <label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label>
120 </div>
121 <div class="input-field col s6">
122 {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
123 <label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label>
124 </div>
125
126 <div class="input-field col s12">
127 {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}
128 {{ form_label(form.domainName) }}
129 </div>
130
131 <div class="col s12">
132 {{ form_label(form.createdAt) }}
133 </div>
134
135 <div class="input-field col s6">
136 {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
137 <label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label>
138 </div>
139 <div class="input-field col s6">
140 {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }}
141 <label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label>
142 </div>
143
144 <div class="col s6">
145 <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a>
146 </div>
147
148 <div class="col s6">
149 <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button>
150 </div>
151 </div>
152
153 </form>
154 </div>
155 {% endif %}
156
157 {% endblock %}