]>
Commit | Line | Data |
---|---|---|
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | |
2 | ||
3 | {% block title %}{{ 'entry.page_titles.unread'|trans }}{% endblock %} | |
4 | ||
5 | {% block content %} | |
6 | {% block pager %} | |
7 | <div class="results"> | |
8 | <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div> | |
9 | <div class="pagination"> | |
10 | <a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a> | |
11 | {% if entries.getNbPages > 1 %} | |
12 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} | |
13 | {% endif %} | |
14 | </div> | |
15 | </div> | |
16 | {% endblock %} | |
17 | ||
18 | {% for entry in entries %} | |
19 | <div id="entry-{{ entry.id|e }}" class="entry"> | |
20 | <h2><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|raw }}</a></h2> | |
21 | ||
22 | {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} | |
23 | <div class="estimatedTime"> | |
24 | <span class="tool reading-time"> | |
25 | {% if readingTime > 0 %} | |
26 | {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }} | |
27 | {% else %} | |
28 | {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} | |
29 | {% endif %} | |
30 | </span> | |
31 | </div> | |
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) }}…</p> | |
41 | {% else %} | |
42 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /> | |
43 | {% endif %} | |
44 | </div> | |
45 | {% endfor %} | |
46 | ||
47 | <aside id="filter-form" class=""> | |
48 | <form method="get" action="{{ path('all') }}"> | |
49 | <h2>{{ 'entry.filters.title'|trans }}</h2> | |
50 | <a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">×</a> | |
51 | ||
52 | <div id="filter-status" class="filter-group"> | |
53 | <div class=""> | |
54 | <label>{{ 'entry.filters.status_label'|trans }}</label> | |
55 | </div> | |
56 | <div class="input-field"> | |
57 | {{ form_widget(form.isArchived) }} | |
58 | {{ form_label(form.isArchived) }} | |
59 | </div> | |
60 | ||
61 | <div class="input-field"> | |
62 | {{ form_widget(form.isStarred) }} | |
63 | {{ form_label(form.isStarred) }} | |
64 | </div> | |
65 | ||
66 | <div class="input-field"> | |
67 | {{ form_widget(form.previewPicture) }} | |
68 | {{ form_label(form.previewPicture) }} | |
69 | </div> | |
70 | </div> | |
71 | ||
72 | <div id="filter-language" class="filter-group"> | |
73 | {{ form_label(form.language) }} | |
74 | <div class="input-field "> | |
75 | {{ form_widget(form.language) }} | |
76 | </div> | |
77 | </div> | |
78 | ||
79 | <div id="filter-reading-time" class="filter-group"> | |
80 | <div class=""> | |
81 | {{ form_label(form.readingTime) }} | |
82 | </div> | |
83 | <div class="input-field "> | |
84 | <label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label> | |
85 | {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }} | |
86 | </div> | |
87 | <div class="input-field "> | |
88 | <label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label> | |
89 | {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }} | |
90 | </div> | |
91 | </div> | |
92 | ||
93 | <div id="filter-domain-name" class="filter-group"> | |
94 | {{ form_label(form.domainName) }} | |
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=""> | |
102 | {{ form_label(form.createdAt) }} | |
103 | </div> | |
104 | <div class="input-field "> | |
105 | <label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label> | |
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 "> | |
109 | <label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label> | |
110 | {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }} | |
111 | </div> | |
112 | </div> | |
113 | ||
114 | <div id="filter-buttons" class="filter-group"> | |
115 | <div class=""> | |
116 | <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a> | |
117 | </div> | |
118 | ||
119 | <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button> | |
120 | </div> | |
121 | </form> | |
122 | </aside> | |
123 | ||
124 | {% endblock %} |