Revision a85900cb
Von Hans Peter Schlaepfer vor mehr als 6 Jahren hinzugefügt
templates/webpages/common/paginate.html | ||
---|---|---|
7 | 7 |
[%- END %] |
8 | 8 |
[%- END %] |
9 | 9 |
[%- IF pages.max > 1 %] |
10 |
<div class='paginate'> |
|
11 |
[%- IF pages.page > 1 %]<a class='paginate-link paginate-prev' href='[% build_url(page=pages.page - 1) %]'>« [% 'prev' | $T8 %]</a> [% ELSE %]<b>«</b> [% END %] |
|
12 |
[%- FOR p = pages.common %] |
|
13 |
[%- NEXT UNLESS p.visible %] |
|
14 |
[%- IF p.active %]<a class='paginate-link paginate-page' href="[% build_url(page=p.page) %]">[% p.page %]</a> [% ELSE %]<b>[% p.page %]</b> [%- END %] |
|
15 |
[%- END %] |
|
16 |
[%- IF pages.page < pages.max %]<a class='paginate-link paginate-next' href='[% build_url(page=pages.page + 1) %]'>[% 'next' | $T8 %] »</a>[% ELSE %]<b>»</b>[%- END %] |
|
10 |
<div class="paginate"> |
|
11 |
[%- IF pages.page > 1 %] |
|
12 |
<a class="paginate-link paginate-prev" href="[% build_url(page=pages.page - 1) %]">« [% 'prev' | $T8 %]</a> [% ELSE %]<b>«</b> [% END %] |
|
13 |
[% FOR p = pages.common %] |
|
14 |
[% NEXT UNLESS p.visible %] |
|
15 |
[% IF p.active %] |
|
16 |
<a class="paginate-link paginate-page" href="[% build_url(page=p.page) %]">[% p.page %]</a> |
|
17 |
[% ELSE %] |
|
18 |
<b>[% p.page %]</b> |
|
19 |
[% END %] |
|
20 |
[% END %] |
|
21 |
[% IF pages.page < pages.max %] |
|
22 |
<a class="paginate-link paginate-next" href="[% build_url(page=pages.page + 1) %]"> |
|
23 |
[% 'next' | $T8 %] » |
|
24 |
</a> |
|
25 |
[% ELSE %] |
|
26 |
<b>»</b> |
|
27 |
[%- END %] |
|
17 | 28 |
</div> |
18 | 29 |
[%- END %] |
30 |
|
|
19 | 31 |
[%- IF target %] |
20 |
<script type='text/javascript'>
|
|
32 |
<script type="text/javascript">
|
|
21 | 33 |
var target = '[% target %]'; |
22 | 34 |
$(function(){ |
23 | 35 |
$('.paginate-link').click(function(event){ |
Auch abrufbar als: Unified diff
Preview design 4.0