Browse Source

Merge pull request #1367 from sjopet/patch-5

don't show 'first' when link is same as 'previous' button
Thomas 12 năm trước cách đây
mục cha
commit
8cce7526b7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Resources/views/CRUD/base_list.html.twig

+ 1 - 1
Resources/views/CRUD/base_list.html.twig

@@ -139,7 +139,7 @@ file that was distributed with this source code.
                             <td colspan="{{ admin.list.elements|length }}">
                                 <div class="pagination pagination-centered">
                                     <ul>
-                                        {% if admin.datagrid.pager.page != 1  %}
+                                        {% if admin.datagrid.pager.page > 2  %}
                                             <li><a href="{{ admin.generateUrl('list', admin.modelmanager.paginationparameters(admin.datagrid, 1)) }}" title="{{ 'link_first_pager'|trans({}, 'SonataAdminBundle') }}">&laquo;</a></li>
                                         {% endif %}