X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=a137f3c34895954001c1cbb15f1c492630223b8f;hb=cefbe6a87fee244840e088955aa787a7ad3abb3e;hp=0c4dc80b6333491cc6b79adf75120a9b28e49b49;hpb=2490f61dca635026a3eb9b5e9b6978b1981b1172;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 0c4dc80b..a137f3c3 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 @@ -21,8 +21,8 @@ {% block content %} {% set listMode = app.user.config.listMode %} {% set currentRoute = app.request.attributes.get('_route') %} -
-
+
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} {% if listMode == 0 %}view_list{% else %}view_module{% endif %} {% if app.user.config.rssToken %} @@ -34,17 +34,14 @@ {% endif %}
-
    {% for entry in entries %}
  • {% 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 %} - {% elseif not entry.previewPicture is null %} + {% else %} {% include "@WallabagCore/themes/material/Entry/_card_preview.html.twig" with {'entry': entry} only %} {% endif %}
  • @@ -52,12 +49,14 @@
{% if entries.getNbPages > 1 %} - {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} +
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} +
{% endif %}
- {% set currentTag = '' %} + {% set currentTag = null %} {% if tag is defined %} {% set currentTag = tag.slug %} {% endif %}