Lost in translation pager

This commit is contained in:
Nicolas Lœuillet 2016-04-12 20:38:56 +02:00
parent 63995be5ee
commit c95e39c51a
No known key found for this signature in database
GPG key ID: 5656BE27E1E34D0A
4 changed files with 3 additions and 11 deletions

View file

@ -6,7 +6,7 @@ services:
filesystem_cache:
class: Doctrine\Common\Cache\FilesystemCache
arguments:
- %kernel.cache_dir%/doctrine/metadata
- "%kernel.cache_dir%/doctrine/metadata"
twig.extension.text:
class: Twig_Extensions_Extension_Text

View file

@ -114,11 +114,3 @@ services:
class: Wallabag\CoreBundle\Operator\Doctrine\Matches
tags:
- { name: rulerz.operator, executor: rulerz.executor.doctrine, operator: matches, inline: true }
pagerfanta.view.wallabag_view:
class: Pagerfanta\View\OptionableView
arguments:
- "@pagerfanta.view.twitter_bootstrap"
- { proximity: 1 }
public: false
tags: [{ name: pagerfanta.view, alias: wallabag_view }]

View file

@ -8,7 +8,7 @@
<div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div>
<div class="pagination">
<a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a>
{{ pagerfanta(entries, 'wallabag_view') }}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
</div>
</div>
{% endblock %}

View file

@ -21,7 +21,7 @@
<div class="nb-results left">
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
</div>
{{ pagerfanta(entries, 'wallabag_view') }}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
</div>
{% endblock %}
<br />