X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=526e3cbb0ebd3500433e6ace920f76acefda9e1d;hb=e247450ade3f8e2ccb66aef0553c424e40834570;hp=9d6fb3f56b77390418d3b289eb799404782c811b;hpb=1953a872932a63792293b4aec087880265ba89f7;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 9d6fb3f5..526e3cbb 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 @@ -2,8 +2,8 @@ {% block head %} {{ parent() }} - {% if tag is defined and app.user.config.rssToken %} - + {% if tag is defined and app.user.config.feedToken %} + {% endif %} {% endblock %} @@ -21,12 +21,16 @@ {% block content %} {% set listMode = app.user.config.listMode %} {% set currentRoute = app.request.attributes.get('_route') %} -
-
+ {% if currentRoute == 'homepage' %} + {% set currentRoute = 'unread' %} + {% endif %} +
+
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} {% if listMode == 0 %}view_list{% else %}view_module{% endif %} - {% if app.user.config.rssToken %} - {% include "@WallabagCore/themes/common/Entry/_rss_link.html.twig" %} + {% if app.user.config.feedToken %} + {% include "@WallabagCore/themes/common/Entry/_feed_link.html.twig" %} {% endif %}
{% if entries.getNbPages > 1 %} @@ -34,25 +38,40 @@ {% endif %}
-
    + +
  • + {% if entries.count > 0 and listMode == 1 %} + +   + + + + + + + + {% 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 %}
  • {% endfor %}
+
{% if entries.getNbPages > 1 %} - {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} +
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} +
{% endif %} @@ -61,18 +80,20 @@ {% if tag is defined %} {% set currentTag = tag.slug %} {% endif %} - {% if currentRoute == 'homepage' %} - {% set currentRoute = 'unread' %} + {% set exportSearchTerm = null %} + {% if searchTerm is defined %} + {% set exportSearchTerm = searchTerm %} {% endif %} + {% set previousRoute = app.request.attributes.get('currentRoute') %}

{{ 'entry.list.export_title'|trans }}

@@ -84,6 +105,12 @@

{{ 'entry.filters.title'|trans }}

+ {% if currentRoute != 'untagged' and nbEntriesUntagged != 0 %} + + {% endif %} +