]>
Commit | Line | Data |
---|---|---|
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.readingTime) }} | |
108 | </div> | |
109 | <div class="input-field col s6"> | |
110 | {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }} | |
111 | <label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label> | |
112 | </div> | |
113 | <div class="input-field col s6"> | |
114 | {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }} | |
115 | <label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label> | |
116 | </div> | |
117 | ||
118 | <div class="input-field col s12"> | |
119 | {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }} | |
120 | {{ form_label(form.domainName) }} | |
121 | </div> | |
122 | ||
123 | <div class="col s12"> | |
124 | {{ form_label(form.createdAt) }} | |
125 | </div> | |
126 | ||
127 | <div class="input-field col s6"> | |
128 | {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }} | |
129 | <label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label> | |
130 | </div> | |
131 | <div class="input-field col s6"> | |
132 | {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }} | |
133 | <label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label> | |
134 | </div> | |
135 | ||
136 | <div class="col s6"> | |
137 | <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a> | |
138 | </div> | |
139 | ||
140 | <div class="col s6"> | |
141 | <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button> | |
142 | </div> | |
143 | </div> | |
144 | ||
145 | </form> | |
146 | </div> | |
147 | {% endif %} | |
148 | ||
149 | {% endblock %} |