projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fokus in Waren gefixt
[kivitendo-erp.git]
/
templates
/
webpages
/
common
/
paginate.html
diff --git
a/templates/webpages/common/paginate.html
b/templates/webpages/common/paginate.html
index
3724f8e
..
0899729
100644
(file)
--- a/
templates/webpages/common/paginate.html
+++ b/
templates/webpages/common/paginate.html
@@
-1,8
+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.max > 1 %]
-[%- IF pages.cur > 1 %]<a href='[% base_url _ "&page=" _ (pages.cur - 1) %]'>«</a> [% ELSE %]<b>«</b> [% END %]
+<div class='paginate'>
+[%- IF pages.cur > 1 %]<a class='paginate-prev' href='[% build_url(page=pages.cur - 1) %]'>« [% 'prev' | $T8 %]</a> [% ELSE %]<b>«</b> [% END %]
[%- FOR p = pages.common %]
[%- NEXT UNLESS p.visible %]
[%- FOR p = pages.common %]
[%- NEXT UNLESS p.visible %]
- [%- IF p.active %]<a
href="[% base_url _ "&page=" _ p.page
%]">[% p.page %]</a> [% ELSE %]<b>[% p.page %]</b> [%- END %]
+ [%- IF p.active %]<a
class='paginate-page' href="[% build_url(page=p.page)
%]">[% p.page %]</a> [% ELSE %]<b>[% p.page %]</b> [%- END %]
[%- END %]
[%- END %]
-[%- IF pages.cur < pages.max %]<a href='[% base_url _ "&page=" _ (pages.cur + 1) %]'>»</a>[% ELSE %]<b>»</b>[%- END %]
+[%- IF pages.cur < pages.max %]<a class='paginate-next' href='[% build_url(page=pages.cur + 1) %]'>[% 'next' | $T8 %] »</a>[% ELSE %]<b>»</b>[%- END %]
+</div>
[%- END %]
[%- END %]