]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
Fix pagination bar on small devices
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / baggy / Entry / entries.html.twig
CommitLineData
ad4d1caa 1{% extends "WallabagCoreBundle::layout.html.twig" %}
9d50517c 2
0d42217e 3{% block title %}{{ 'entry.page_titles.unread'|trans }}{% endblock %}
9d50517c 4
9d50517c 5{% block content %}
163eae0b 6 {% block pager %}
163eae0b 7 <div class="results">
0d42217e 8 <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div>
18078ded
NL
9 <div class="pagination">
10 <a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a>
188b74b6 11 {% if entries.getNbPages > 1 %}
1f034a33
NL
12 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
13 {% endif %}
18078ded 14 </div>
163eae0b 15 </div>
163eae0b 16 {% endblock %}
9d50517c 17
0d42217e
JB
18 {% for entry in entries %}
19 <div id="entry-{{ entry.id|e }}" class="entry">
1b8b3859 20 <h2><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|raw }}</a></h2>
4a749cad
NL
21
22 {% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
23 <div class="estimatedTime">
0d42217e 24 <span class="tool reading-time">
4a749cad
NL
25 {% if readingTime > 0 %}
26 {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }}
0d42217e 27 {% else %}
4a749cad 28 {{ 'entry.list.reading_time_less_one_minute'|trans|raw }}
0d42217e 29 {% endif %}
4a749cad
NL
30 </span>
31 </div>
0d42217e
JB
32
33 <ul class="tools links">
34 <li><a title="{{ 'entry.list.toogle_as_read'|trans }}" class="tool icon-check icon {% if entry.isArchived == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{{ 'entry.list.toogle_as_read'|trans }}</span></a></li>
35 <li><a title="{{ 'entry.list.toogle_as_star'|trans }}" class="tool icon-star icon {% if entry.isStarred == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{{ 'entry.list.toogle_as_star'|trans }}</span></a></li>
36 <li><a title="{{ 'entry.list.delete'|trans }}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{{ 'entry.list.delete'|trans }}</span></a></li>
37 <li><a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.list.original_article'|trans }} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.domainName|removeWww }}</span></a></li>
38 </ul>
39 {% if entry.previewPicture is null %}
40 <p>{{ entry.content|striptags|slice(0, 300) }}&hellip;</p>
41 {% else %}
42 <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" />
43 {% endif %}
44 </div>
45 {% endfor %}
5def3f58
JB
46
47 <aside id="filter-form" class="">
48 <form method="get" action="{{ path('all') }}">
0d42217e 49 <h2>{{ 'entry.filters.title'|trans }}</h2>
5def3f58
JB
50 <a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">&times;</a>
51
52 <div id="filter-status" class="filter-group">
53 <div class="">
0d42217e 54 <label>{{ 'entry.filters.status_label'|trans }}</label>
5def3f58
JB
55 </div>
56 <div class="input-field">
57 {{ form_widget(form.isArchived) }}
0d42217e 58 {{ form_label(form.isArchived) }}
5def3f58
JB
59 </div>
60
61 <div class="input-field">
62 {{ form_widget(form.isStarred) }}
0d42217e 63 {{ form_label(form.isStarred) }}
5def3f58 64 </div>
5e98404d
JB
65
66 <div class="input-field">
67 {{ form_widget(form.previewPicture) }}
0d42217e 68 {{ form_label(form.previewPicture) }}
5e98404d 69 </div>
5def3f58 70 </div>
d4ebe5c5
JB
71
72 <div id="filter-language" class="filter-group">
0d42217e 73 {{ form_label(form.language) }}
d4ebe5c5
JB
74 <div class="input-field ">
75 {{ form_widget(form.language) }}
76 </div>
77 </div>
78
5def3f58
JB
79 <div id="filter-reading-time" class="filter-group">
80 <div class="">
0d42217e 81 {{ form_label(form.readingTime) }}
5def3f58
JB
82 </div>
83 <div class="input-field ">
0d42217e 84 <label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label>
5e98404d 85 {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
5def3f58
JB
86 </div>
87 <div class="input-field ">
0d42217e 88 <label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label>
5def3f58
JB
89 {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
90 </div>
91 </div>
92
93 <div id="filter-domain-name" class="filter-group">
0d42217e 94 {{ form_label(form.domainName) }}
5def3f58
JB
95 <div class="input-field ">
96 {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}
97 </div>
98 </div>
99
100 <div id="filter-creation-date" class="filter-group">
101 <div class="">
0d42217e 102 {{ form_label(form.createdAt) }}
5def3f58
JB
103 </div>
104 <div class="input-field ">
0d42217e 105 <label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label>
5def3f58
JB
106 {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
107 </div>
108 <div class="input-field ">
0d42217e 109 <label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label>
5def3f58
JB
110 {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }}
111 </div>
112 </div>
5def3f58 113
0d42217e 114 <div id="filter-buttons" class="filter-group">
5def3f58 115 <div class="">
0d42217e 116 <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a>
5def3f58
JB
117 </div>
118
0d42217e
JB
119 <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button>
120 </div>
5def3f58
JB
121 </form>
122 </aside>
123
9d50517c 124{% endblock %}