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=cc4038c5803b200e4586dfae19a62c1b10f322fc;hpb=1556c925a42619c1298edebb73eb86c009b3f3c8;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 cc4038c5..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 %}
+
+ {{ form_widget(form.isUnread) }}
+ {{ form_label(form.isUnread) }}
+
+
{{ 'entry.filters.preview_picture_help'|trans }}
@@ -184,5 +203,6 @@
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
+ {% endif %}
+
{% endblock %}