X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=27c8e8a2e3f9c552bbfc64a7da4b662cc6e28944;hb=8ffcee8aff06047835acd96564bf17808d4af764;hp=9380e67afbf38ba548a6014bb00946be39898107;hpb=97e7ad4dc7bfc26cea334bc880a39e388d6848f3;p=github%2Fwallabag%2Fwallabag.git
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
index 9380e67a..27c8e8a2 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
@@ -1,27 +1,44 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
-{% block title %}
- {% set currentRoute = app.request.attributes.get('_route') %}
+{% block head %}
+ {{ parent() }}
+ {% if tag is defined and app.user.config.rssToken %}
+
+ {% endif %}
+{% endblock %}
- {% if currentRoute == 'starred' %}
- {{ 'entry.page_titles.starred'|trans }}
- {% elseif currentRoute == 'archive' %}
- {{ 'entry.page_titles.archived'|trans }}
- {% elseif currentRoute == 'all' %}
- {{ 'entry.page_titles.filtered'|trans }}
- {% elseif currentRoute == 'tag_entries' %}
- {{ 'entry.page_titles.filtered_tags'|trans }}
- {% else %}
- {{ 'entry.page_titles.unread'|trans }}
+{% block title %}
+ {% set filter = '' %}
+ {% if tag is defined %}
+ {% set filter = tag %}
+ {% endif %}
+ {% if searchTerm is defined and searchTerm is not empty %}
+ {% set filter = searchTerm %}
{% endif %}
+ {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'filter': filter} %}
{% endblock %}
{% block content %}
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
+ {% set currentRoute = app.request.attributes.get('_route') %}
+ {% set listMode = app.user.config.listMode %}
+
-
+
+
{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
@@ -32,54 +49,66 @@
{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}
{% endif %}
+
+
+ {{ entry.createdAt|date('Y-m-d') }}
+
+
- {% if entry.previewPicture is null %}
-
{{ entry.content|striptags|slice(0, 300) }}…
+ {% if (entry.previewPicture is null or listMode == 1) %}
{% for tag in entry.tags %}
- - {{ tag.label }}
+ - {{ tag.label }}
{% endfor %}
+
{{ entry.content|striptags|slice(0, 300) }}…
{% else %}
{% for tag in entry.tags | slice(0, 3) %}
- - {{ tag.label }}
+ - {{ tag.label }}
{% endfor %}
-
+
{% endif %}
{% endfor %}
+ {% if entries.getNbPages > 1 %}
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
+ {% endif %}
+
{% if form is not null %}
-