X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=6f657b1807f44dac95af9ad98637f4f2ad53d6b3;hb=873f6b8e03079d11fab541aa5b0bc6f8fe2d645e;hp=00e8bf63835790693d42fce9e75533afeb659e0e;hpb=6f85bed294d6dd9f2dd9c945544074cbde38e191;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 00e8bf63..6f657b18 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
@@ -12,9 +12,11 @@
{% endblock %}
{% block content %}
+ {% set listMode = app.user.config.listMode %}
{% if entries.getNbPages > 1 %}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
@@ -22,10 +24,12 @@
-
+
{% for entry in entries %}
- -
- {% if entry.previewPicture is null %}
+
-
+ {% if listMode == 1 %}
+ {% include "@WallabagCore/themes/material/Entry/_card_list.html.twig" with {'entry': entry} only %}
+ {% elseif entry.previewPicture is null %}
{% include "@WallabagCore/themes/material/Entry/_card_no_preview.html.twig" with {'entry': entry} only %}
{% elseif not entry.previewPicture is null and entry.mimetype starts with 'image/' %}
{% include "@WallabagCore/themes/material/Entry/_card_full_image.html.twig" with {'entry': entry} only %}
@@ -41,7 +45,7 @@
{% endif %}
-
+
{% set currentRoute = app.request.attributes.get('_route') %}
{% set currentTag = '' %}
{% if tag is defined %}
@@ -64,7 +68,7 @@
{% if form is not null %}
-