Skip to content

Commit

Permalink
Merge pull request #1301 from dannyvw/bugfix/media-pagination
Browse files Browse the repository at this point in the history
[MediaBundle] Added pagination for thumbnail view
  • Loading branch information
Kristof Jochmans authored Sep 22, 2016
2 parents 277cd24 + 43e0521 commit 7a24c22
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@
</div>
</div>
{% if adminlist.count > 0 %}
{% if adminlist.pagerfanta.haveToPaginate() %}
{{ pagerfanta(adminlist.pagerfanta, 'twitter_bootstrap_translated') }}
{% endif %}
<div class="row">
{% for media in adminlist.items %}
{% set handler = mediamanager.getHandler(media) %}
Expand Down Expand Up @@ -264,6 +267,9 @@
{% endif %}
{% endfor %}
</div>
{% if adminlist.pagerfanta.haveToPaginate() %}
{{ pagerfanta(adminlist.pagerfanta, 'twitter_bootstrap_translated') }}
{% endif %}
<p id="dnd-area-link" class="text--muted">
<strong>{{ 'media.media.dnd.tip' |trans }}</strong> {{ 'media.media.dnd.tiptext' |trans }}
</p>
Expand Down

0 comments on commit 7a24c22

Please sign in to comment.