1 {% extends "WallabagCoreBundle::layout.html.twig" %}
4 {% include "@WallabagCore/themes/_title.html.twig" %}
8 {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
10 {% for entry in entries %}
11 <div id="entry-{{ entry.id|e }}" class="entry">
12 <h2><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|raw }}</a></h2>
14 {% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
15 <div class="estimatedTime">
16 <span class="tool reading-time">
17 {% if readingTime > 0 %}
18 {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }}
20 {{ 'entry.list.reading_time_less_one_minute'|trans|raw }}
25 <ul class="tools links">
26 <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>
27 <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>
28 <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>
29 <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>
31 {% if entry.previewPicture is null %}
32 <p>{{ entry.content|striptags|slice(0, 300) }}…</p>
33 <ul class="card-entry-tags">
34 {% for tag in entry.tags %}
35 <li>{{ tag.label }}</li>
39 <ul class="card-entry-labels">
40 {% for tag in entry.tags | slice(0, 3) %}
41 <li>{{ tag.label }}</li>
44 <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" />
50 <aside id="download-form">
51 {% set currentRoute = app.request.attributes.get('_route') %}
52 {% if currentRoute == 'homepage' %}
53 {% set currentRoute = 'unread' %}
55 <h2>{{ 'entry.list.export_title'|trans }}</h2>
56 <a href="javascript: void(null);" id="download-form-close" class="close-button--popup close-button">×</a>
58 {% if craue_setting('export_epub') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'epub' }) }}">EPUB</a></li>{% endif %}
59 {% if craue_setting('export_mobi') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'mobi' }) }}">MOBI</a></li>{% endif %}
60 {% if craue_setting('export_pdf') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'pdf' }) }}">PDF</a></li>{% endif %}
61 {% if craue_setting('export_csv') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'json' }) }}">JSON</a></li>{% endif %}
62 {% if craue_setting('export_json') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'csv' }) }}">CSV</a></li>{% endif %}
63 {% if craue_setting('export_txt') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'txt' }) }}">TXT</a></li>{% endif %}
64 {% if craue_setting('export_xml') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'xml' }) }}">XML</a></li>{% endif %}
69 {% if form is not null %}
70 <aside id="filter-form" class="">
71 <form method="get" action="{{ path('all') }}">
72 <h2>{{ 'entry.filters.title'|trans }}</h2>
73 <a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">×</a>
75 <div id="filter-status" class="filter-group">
77 <label>{{ 'entry.filters.status_label'|trans }}</label>
79 <div class="input-field">
80 {{ form_widget(form.isArchived) }}
81 {{ form_label(form.isArchived) }}
84 <div class="input-field">
85 {{ form_widget(form.isStarred) }}
86 {{ form_label(form.isStarred) }}
89 <div class="input-field">
90 {{ form_widget(form.isUnread) }}
91 {{ form_label(form.isUnread) }}
94 <div class="input-field">
95 {{ form_widget(form.previewPicture) }}
96 {{ form_label(form.previewPicture) }}
100 <div id="filter-language" class="filter-group">
101 {{ form_label(form.language) }}
102 <div class="input-field ">
103 {{ form_widget(form.language) }}
107 <div id="filter-reading-time" class="filter-group">
109 {{ form_label(form.readingTime) }}
111 <div class="input-field ">
112 <label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label>
113 {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
115 <div class="input-field ">
116 <label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label>
117 {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
121 <div id="filter-domain-name" class="filter-group">
122 {{ form_label(form.domainName) }}
123 <div class="input-field ">
124 {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}
128 <div id="filter-creation-date" class="filter-group">
130 {{ form_label(form.createdAt) }}
132 <div class="input-field ">
133 <label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label>
134 {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
136 <div class="input-field ">
137 <label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label>
138 {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }}
142 <div id="filter-buttons" class="filter-group">
144 <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a>
147 <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button>