2015-01-23 15:28:37 +00:00
|
|
|
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
2015-01-22 16:18:56 +00:00
|
|
|
|
2016-04-20 08:04:32 +00:00
|
|
|
{% block title %}
|
2016-08-26 19:26:21 +00:00
|
|
|
{% include "@WallabagCore/themes/_title.html.twig" %}
|
2016-04-20 08:04:32 +00:00
|
|
|
{% endblock %}
|
2015-01-22 16:18:56 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2016-05-03 19:44:57 +00:00
|
|
|
{% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
|
2015-01-22 16:18:56 +00:00
|
|
|
|
2016-03-09 07:59:08 +00:00
|
|
|
{% for entry in entries %}
|
|
|
|
<div id="entry-{{ entry.id|e }}" class="entry">
|
2016-04-11 12:23:58 +00:00
|
|
|
<h2><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|raw }}</a></h2>
|
2016-04-05 13:35:01 +00:00
|
|
|
|
|
|
|
{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
|
|
|
|
<div class="estimatedTime">
|
2016-03-09 07:59:08 +00:00
|
|
|
<span class="tool reading-time">
|
2016-04-05 13:35:01 +00:00
|
|
|
{% if readingTime > 0 %}
|
|
|
|
{{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }}
|
2016-03-09 07:59:08 +00:00
|
|
|
{% else %}
|
2016-04-05 13:35:01 +00:00
|
|
|
{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}
|
2016-03-09 07:59:08 +00:00
|
|
|
{% endif %}
|
2016-04-05 13:35:01 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
2016-03-09 07:59:08 +00:00
|
|
|
|
|
|
|
<ul class="tools links">
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
{% if entry.previewPicture is null %}
|
|
|
|
<p>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
2016-07-01 11:59:30 +00:00
|
|
|
<ul class="card-entry-tags">
|
|
|
|
{% for tag in entry.tags %}
|
|
|
|
<li>{{ tag.label }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2016-03-09 07:59:08 +00:00
|
|
|
{% else %}
|
2016-07-01 11:59:30 +00:00
|
|
|
<ul class="card-entry-labels">
|
|
|
|
{% for tag in entry.tags | slice(0, 3) %}
|
|
|
|
<li>{{ tag.label }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2016-03-09 07:59:08 +00:00
|
|
|
<img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" />
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2015-08-25 21:24:24 +00:00
|
|
|
|
2016-03-08 16:02:34 +00:00
|
|
|
<!-- Export -->
|
|
|
|
<aside id="download-form">
|
|
|
|
{% set currentRoute = app.request.attributes.get('_route') %}
|
|
|
|
{% if currentRoute == 'homepage' %}
|
|
|
|
{% set currentRoute = 'unread' %}
|
|
|
|
{% endif %}
|
|
|
|
<h2>{{ 'entry.list.export_title'|trans }}</h2>
|
|
|
|
<a href="javascript: void(null);" id="download-form-close" class="close-button--popup close-button">×</a>
|
|
|
|
<ul>
|
|
|
|
{% if craue_setting('export_epub') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'epub' }) }}">EPUB</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_mobi') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'mobi' }) }}">MOBI</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_pdf') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'pdf' }) }}">PDF</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_csv') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'json' }) }}">JSON</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_json') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'csv' }) }}">CSV</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_txt') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'txt' }) }}">TXT</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_xml') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'xml' }) }}">XML</a></li>{% endif %}
|
|
|
|
</ul>
|
|
|
|
</aside>
|
2016-04-20 08:04:32 +00:00
|
|
|
|
2016-03-08 16:02:34 +00:00
|
|
|
<!-- Filter -->
|
2016-04-20 08:04:32 +00:00
|
|
|
{% if form is not null %}
|
|
|
|
<aside id="filter-form" class="">
|
2015-08-25 21:24:24 +00:00
|
|
|
<form method="get" action="{{ path('all') }}">
|
2016-03-09 07:59:08 +00:00
|
|
|
<h2>{{ 'entry.filters.title'|trans }}</h2>
|
2015-08-25 21:24:24 +00:00
|
|
|
<a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">×</a>
|
|
|
|
|
|
|
|
<div id="filter-status" class="filter-group">
|
|
|
|
<div class="">
|
2016-03-09 07:59:08 +00:00
|
|
|
<label>{{ 'entry.filters.status_label'|trans }}</label>
|
2015-08-25 21:24:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="input-field">
|
|
|
|
{{ form_widget(form.isArchived) }}
|
2016-03-09 07:59:08 +00:00
|
|
|
{{ form_label(form.isArchived) }}
|
2015-08-25 21:24:24 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-field">
|
|
|
|
{{ form_widget(form.isStarred) }}
|
2016-03-09 07:59:08 +00:00
|
|
|
{{ form_label(form.isStarred) }}
|
2015-08-25 21:24:24 +00:00
|
|
|
</div>
|
2015-09-13 13:17:58 +00:00
|
|
|
|
2016-03-08 16:02:34 +00:00
|
|
|
<div class="input-field">
|
|
|
|
{{ form_widget(form.isUnread) }}
|
|
|
|
{{ form_label(form.isUnread) }}
|
|
|
|
</div>
|
|
|
|
|
2015-09-13 13:17:58 +00:00
|
|
|
<div class="input-field">
|
|
|
|
{{ form_widget(form.previewPicture) }}
|
2016-03-09 07:59:08 +00:00
|
|
|
{{ form_label(form.previewPicture) }}
|
2015-09-13 13:17:58 +00:00
|
|
|
</div>
|
2015-08-25 21:24:24 +00:00
|
|
|
</div>
|
2015-09-23 05:55:55 +00:00
|
|
|
|
|
|
|
<div id="filter-language" class="filter-group">
|
2016-03-09 07:59:08 +00:00
|
|
|
{{ form_label(form.language) }}
|
2015-09-23 05:55:55 +00:00
|
|
|
<div class="input-field ">
|
|
|
|
{{ form_widget(form.language) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-08-25 21:24:24 +00:00
|
|
|
<div id="filter-reading-time" class="filter-group">
|
|
|
|
<div class="">
|
2016-03-09 07:59:08 +00:00
|
|
|
{{ form_label(form.readingTime) }}
|
2015-08-25 21:24:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="input-field ">
|
2016-03-09 07:59:08 +00:00
|
|
|
<label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label>
|
2015-09-13 13:17:58 +00:00
|
|
|
{{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
|
2015-08-25 21:24:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="input-field ">
|
2016-03-09 07:59:08 +00:00
|
|
|
<label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label>
|
2015-08-25 21:24:24 +00:00
|
|
|
{{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="filter-domain-name" class="filter-group">
|
2016-03-09 07:59:08 +00:00
|
|
|
{{ form_label(form.domainName) }}
|
2015-08-25 21:24:24 +00:00
|
|
|
<div class="input-field ">
|
|
|
|
{{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="filter-creation-date" class="filter-group">
|
|
|
|
<div class="">
|
2016-03-09 07:59:08 +00:00
|
|
|
{{ form_label(form.createdAt) }}
|
2015-08-25 21:24:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="input-field ">
|
2016-03-09 07:59:08 +00:00
|
|
|
<label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label>
|
2015-08-25 21:24:24 +00:00
|
|
|
{{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
|
|
|
|
</div>
|
|
|
|
<div class="input-field ">
|
2016-03-09 07:59:08 +00:00
|
|
|
<label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label>
|
2015-08-25 21:24:24 +00:00
|
|
|
{{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-03-09 07:59:08 +00:00
|
|
|
<div id="filter-buttons" class="filter-group">
|
2015-08-25 21:24:24 +00:00
|
|
|
<div class="">
|
2016-03-09 07:59:08 +00:00
|
|
|
<a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a>
|
2015-08-25 21:24:24 +00:00
|
|
|
</div>
|
|
|
|
|
2016-03-09 07:59:08 +00:00
|
|
|
<button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button>
|
|
|
|
</div>
|
2015-08-25 21:24:24 +00:00
|
|
|
</form>
|
|
|
|
</aside>
|
2016-04-20 08:04:32 +00:00
|
|
|
{% endif %}
|
2015-01-22 16:18:56 +00:00
|
|
|
{% endblock %}
|