X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcommon%2Fpaginate.html;h=c833904b8adf6a42d122275e4465ba411e7bf388;hb=1b3e021ac501edcaa9e66703585b54564c2f23cd;hp=a476fa09f9dd63b88ad73934675d50391a4b52e7;hpb=c8bdac22de4fbd63c974d76a23fe3393cdc551ed;p=kivitendo-erp.git diff --git a/templates/webpages/common/paginate.html b/templates/webpages/common/paginate.html index a476fa09f..c833904b8 100644 --- a/templates/webpages/common/paginate.html +++ b/templates/webpages/common/paginate.html @@ -1,9 +1,18 @@ [%- USE T8 %] +[%- MACRO build_url BLOCK %] + [%- IF base_url %] + [%- base_url %]&page=[% page %] + [%- ELSE %] + [% url_maker('page' => page) %] + [%- END %] +[%- END %] [%- IF pages.max > 1 %] -[%- IF pages.cur > 1 %]« [% 'prev' | $T8 %] [% ELSE %]« [% END %] +
+[%- IF pages.page > 1 %]« [% 'prev' | $T8 %] [% ELSE %]« [% END %] [%- FOR p = pages.common %] [%- NEXT UNLESS p.visible %] - [%- IF p.active %][% p.page %] [% ELSE %][% p.page %] [%- END %] + [%- IF p.active %][% p.page %] [% ELSE %][% p.page %] [%- END %] [%- END %] -[%- IF pages.cur < pages.max %][% 'next' | $T8 %] »[% ELSE %]»[%- END %] +[%- IF pages.page < pages.max %][% 'next' | $T8 %] »[% ELSE %]»[%- END %] +
[%- END %]