fix mobile pagination

main
pichalite 9 years ago
parent cd19c860c0
commit e7aa4cfbb6

@ -1,5 +1,5 @@
<div component="pagination" class="text-center pagination-container<!-- IF !pagination.pages.length --> hidden<!-- ENDIF !pagination.pages.length -->"> <div component="pagination" class="text-center pagination-container<!-- IF !pagination.pages.length --> hidden<!-- ENDIF !pagination.pages.length -->">
<ul class="pagination"> <ul class="pagination hidden-xs">
<li class="previous pull-left<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->"> <li class="previous pull-left<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->">
<a href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a> <a href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
</li> </li>
@ -10,7 +10,7 @@
<a href="#"><i class="fa fa-ellipsis-h"></i></a> <a href="#"><i class="fa fa-ellipsis-h"></i></a>
</li> </li>
<!-- ELSE --> <!-- ELSE -->
<li class="page<!-- IF pagination.pages.active --> active<!-- ELSE --> hidden-xs<!-- ENDIF pagination.pages.active -->" > <li class="page<!-- IF pagination.pages.active --> active<!-- ENDIF pagination.pages.active -->" >
<a href="?{pagination.pages.qs}" data-page="{pagination.pages.page}">{pagination.pages.page}</a> <a href="?{pagination.pages.qs}" data-page="{pagination.pages.page}">{pagination.pages.page}</a>
</li> </li>
<!-- ENDIF pagination.pages.separator --> <!-- ENDIF pagination.pages.separator -->
@ -20,4 +20,26 @@
<a href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a> <a href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
</li> </li>
</ul> </ul>
<ul class="pagination hidden-sm hidden-md hidden-lg">
<li class="first<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->">
<a href="?page=1" data-page="1"><i class="fa fa-fast-backward"></i> </a>
</li>
<li class="previous<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->">
<a href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
</li>
<li component="pagination/select-page" class="page select-page">
<a href="#">{pagination.currentPage} / {pagination.pageCount}</a>
</li>
<li class="next<!-- IF !pagination.next.active --> disabled<!-- ENDIF !pagination.next.active -->">
<a href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
</li>
<li class="last<!-- IF !pagination.next.active --> disabled<!-- ENDIF !pagination.next.active -->">
<a href="?page={pagination.pageCount}" data-page="{pagination.pageCount}"><i class="fa fa-fast-forward"></i> </a>
</li>
</ul>
</div> </div>
Loading…
Cancel
Save