From: Nicolas Lœuillet Date: Fri, 4 Nov 2016 07:49:52 +0000 (+0100) Subject: Merge pull request #2460 from wallabag/ui-changes X-Git-Tag: 2.1.3~3 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=2db9142bfc3e34c1f79f3aabf5b302c3a487b3e1;hp=-c;p=github%2Fwallabag%2Fwallabag.git Merge pull request #2460 from wallabag/ui-changes UI Changes --- 2db9142bfc3e34c1f79f3aabf5b302c3a487b3e1 diff --combined src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index 5d657c7e,cc150cf1..0f1c010f --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig @@@ -1,15 -1,21 +1,25 @@@ {% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %} - {% include "@WallabagCore/themes/common/Entry/_title.html.twig" %} + {% set currentTag = '' %} + {% if tag is defined %} + {% set currentTag = tag %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} {% endblock %} {% block content %} - {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} + +
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
+ +
{% for entry in entries %}
@@@ -50,32 -56,32 +60,36 @@@
{% endfor %} + {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} + {% if form is not null %} -
+

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

× diff --combined src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 1225e680,1f88f774..6347afac --- 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,19 -1,23 +1,27 @@@ {% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %} - {% include "@WallabagCore/themes/common/Entry/_title.html.twig" %} + {% set currentTag = '' %} + {% if tag is defined %} + {% set currentTag = tag %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} {% endblock %} {% block content %} - {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} +
+
+ {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} +
+ {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} +
+
    {% for entry in entries %} -
  • +
  • @@@ -30,24 -34,19 +38,19 @@@
    {% if not entry.previewPicture is null %} - more_vert + more_vert {% endif %} - {{ entry.title|striptags|raw }} + {{ entry.title| striptags | truncate(80, true, '…') | raw }} -
    - - {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} - {% if readingTime > 0 %} - {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }} - {% else %} - {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} - {% endif %} - + {% if entry.previewPicture is null %} -

    {{ entry.content|striptags|slice(0, 300)|raw }}…

    +

    {{ entry.content|striptags|slice(0, 250)|raw }}…