Revision 011c1238
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
templates/webpages/common/paginate.html | ||
---|---|---|
7 | 7 |
[%- END %] |
8 | 8 |
[%- END %] |
9 | 9 |
[%- IF pages.max > 1 %] |
10 |
<span class='paginate'>
|
|
10 |
<div class='paginate'>
|
|
11 | 11 |
[%- IF pages.cur > 1 %]<a class='paginate-prev' href='[% build_url(page=pages.cur - 1) %]'>« [% 'prev' | $T8 %]</a> [% ELSE %]<b>«</b> [% END %] |
12 | 12 |
[%- FOR p = pages.common %] |
13 | 13 |
[%- NEXT UNLESS p.visible %] |
14 | 14 |
[%- IF p.active %]<a class='paginate-page' href="[% build_url(page=p.page) %]">[% p.page %]</a> [% ELSE %]<b>[% p.page %]</b> [%- END %] |
15 | 15 |
[%- END %] |
16 | 16 |
[%- IF pages.cur < pages.max %]<a class='paginate-next' href='[% build_url(page=pages.cur + 1) %]'>[% 'next' | $T8 %] »</a>[% ELSE %]<b>»</b>[%- END %] |
17 |
</span>
|
|
17 |
</div>
|
|
18 | 18 |
[%- END %] |
Auch abrufbar als: Unified diff
Paginate-Controls in <div> anstelle von <span> packen