X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=1225e68060d29934fac9e93c675b43f9b896eb96;hb=920d88599a077a7624574345243caf45c6bc5820;hp=c8e4a533902ab1ee2844a694fb72d6bc23811614;hpb=c649d433810906571995a60eb6a486766e4875cf;p=github%2Fwallabag%2Fwallabag.git
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
index c8e4a533..1225e680 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
@@ -1,18 +1,11 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}
- {% set currentRoute = app.request.attributes.get('_route') %}
-
- {% if currentRoute == 'starred' %}
- {{ 'entry.page_titles.starred'|trans }}
- {% elseif currentRoute == 'archive' %}
- {{ 'entry.page_titles.archived'|trans }}
- {% elseif currentRoute == 'all' %}
- {{ 'entry.page_titles.filtered'|trans }}
- {% else %}
- {{ 'entry.page_titles.unread'|trans }}
- {% endif %}
-
+ {% set currentTag = '' %}
+ {% if tag is defined %}
+ {% set currentTag = tag %}
+ {% endif %}
+ {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %}
{% endblock %}
{% block content %}
@@ -26,16 +19,21 @@
{% if not entry.previewPicture is null %}
+
+ {% for tag in entry.tags | slice(0, 3) %}
+ - {{ tag.label }}
+ {% endfor %}
+
{% endif %}
{% if not entry.previewPicture is null %}
-
+
more_vert
{% endif %}
-
{{ entry.title|striptags|slice(0, 42)|raw }}
+
{{ entry.title|striptags|raw }}
@@ -50,13 +48,18 @@
{% if entry.previewPicture is null %}
{{ entry.content|striptags|slice(0, 300)|raw }}…
+
+ {% for tag in entry.tags | slice(0, 2) %}
+ - {{ tag.label }}
+ {% endfor %}
+
{% endif %}
{% if not entry.previewPicture is null %}
{% endif %}
@@ -90,22 +99,27 @@
{% set currentRoute = app.request.attributes.get('_route') %}
+ {% set currentTag = '' %}
+ {% if tag is defined %}
+ {% set currentTag = tag %}
+ {% endif %}
{% if currentRoute == 'homepage' %}
{% set currentRoute = 'unread' %}
{% endif %}
{{ 'entry.list.export_title'|trans }}
- {% if craue_setting('export_epub') %}- EPUB
{% endif %}
- {% if craue_setting('export_mobi') %}- MOBI
{% endif %}
- {% if craue_setting('export_pdf') %}- PDF
{% endif %}
- {% if craue_setting('export_csv') %}- JSON
{% endif %}
- {% if craue_setting('export_json') %}- CSV
{% endif %}
- {% if craue_setting('export_txt') %}- TXT
{% endif %}
- {% if craue_setting('export_xml') %}- XML
{% endif %}
+ {% if craue_setting('export_epub') %}- EPUB
{% endif %}
+ {% if craue_setting('export_mobi') %}- MOBI
{% endif %}
+ {% if craue_setting('export_pdf') %}- PDF
{% endif %}
+ {% if craue_setting('export_csv') %}- JSON
{% endif %}
+ {% if craue_setting('export_json') %}- CSV
{% endif %}
+ {% if craue_setting('export_txt') %}- TXT
{% endif %}
+ {% if craue_setting('export_xml') %}- XML
{% endif %}
+ {% if form is not null %}
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
+ {% endif %}
+
{% endblock %}