X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=b2d91c9cc3d5f5c22ba9b40b7a5cc4f5c06a855a;hb=64f81bc31699ed239e4becec1cfa7ebc0bef2b5a;hp=920fa9334bf69799d8dd5cdf11079bc82b58ad1f;hpb=2e16a9033930ea33721f9ffba3fb12d145f5d56b;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 920fa933..b2d91c9c 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,112 +1,74 @@ {% 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 filter = '' %} + {% if tag is defined %} + {% set filter = tag %} + {% endif %} + {% if searchTerm is defined and searchTerm is not empty %} + {% set filter = searchTerm %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'filter': filter} %} {% endblock %} {% block content %} - {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} + {% set listMode = app.user.config.listMode %} +
+
+ {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} + {% if listMode == 0 %}view_list{% else %}view_module{% endif %} +
+ {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} +
+
+ {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} + -
+
{% 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 form is not null %} +

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

@@ -148,6 +110,14 @@ {{ form_widget(form.language) }}
+
+ {{ form_label(form.httpStatus) }} +
+ +
+ {{ form_widget(form.httpStatus) }} +
+
{{ form_label(form.readingTime) }}
@@ -189,5 +159,6 @@
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} + {% endif %} + {% endblock %}