Skip to content

Commit

Permalink
[AdminListBundle][MediaBundle] remove duplicate pagination and broken…
Browse files Browse the repository at this point in the history
… switch pagination limit (#1927)
  • Loading branch information
Numkil authored and Devolicious committed Apr 27, 2018
1 parent 960b0af commit 999f237
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Expand Up @@ -2,10 +2,6 @@

{% include '@KunstmaanAdminList/AdminListTwigExtension/filters.html.twig' %}

{% if adminlist.pagerfanta.haveToPaginate() %}
{{ pagerfanta(adminlist.pagerfanta, 'twitter_bootstrap_translated') }}
{% endif %}

{% if adminlist.hasBulkActions %}
<form action="#" method="POST" name="bulkform" id="bulk-form">
{% endif %}
Expand All @@ -16,4 +12,4 @@
{% if (adminlist.canEdit(item) or adminlist.canView(item) or adminlist.canDelete(item) or adminlist.hasItemActions() ) %}
{% set itemActionsPossible = true %}
{% endif %}
{% endfor %}
{% endfor %}
Expand Up @@ -57,9 +57,7 @@ public function __construct(
$this->folder = $folder;
$this->request = $request;

// Thumbnail view should display 24 images, list view 250
$viewMode = $request->get('viewMode', 'thumb-view');
$this->limit = ($viewMode == 'thumb-view') ? 24 : 250;
$this->limit = 24;
}

/**
Expand Down

0 comments on commit 999f237

Please sign in to comment.