File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ no_records_found : " No records were found"
2+ showing_records : " Showing FROM-TO from TOTAL_PAGES"
Original file line number Diff line number Diff line change 1+ {% trans_default_domain " pager" %}
12{% set pager = pagination %}
3+
24<ul class =" pagination" >
35 {% if pager .pagination .previous is defined %}
46 <li >
6769
6870<p class =" pagination-summary" >
6971 {% if pager .total == 0 %}
70- No records were found
72+ {% trans %}no_records_found{% endtrans %}
7173 {% else %}
72- Showing {{ pager .itemsPerPage*(pager .currentPage-1) + 1 }}-{{ min (pager .itemsPerPage + pager .itemsPerPage*(pager .currentPage-1), pager .total ) }} from {{ pager .total }}
74+ {% set record_from = pager .itemsPerPage*(pager .currentPage-1) + 1 %}
75+ {% set record_to = min (pager .itemsPerPage + pager .itemsPerPage*(pager .currentPage-1), pager .total ) %}
76+ {% set total_pages = pager .total %}
77+
78+ {% trans with {' FROM' : record_from , ' TO' : record_to , ' TOTAL_PAGES' : total_pages } %}showing_records{% endtrans %}
7379 {% endif %}
7480</p >
7581<div class =" clearfix" ></div >
You can’t perform that action at this time.
0 commit comments