Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3fc38171

Von Andreas Rudin vor etwa 6 Jahren hinzugefügt

  • ID 3fc381717c5e7f0f657f604880fac7b7be4e492b
  • Vorgänger 9439c4f2
  • Nachfolger a58ef474

HP Aenderungen bis Oktober 2018

Unterschiede anzeigen:

templates/webpages/common/paginate.html
1
[%- USE T8 %]
2
[%- MACRO build_url BLOCK %]
3
 [%- IF base_url %]
4
  [%- base_url %]&page=[% page %]
5
 [%- ELSE %]
1
[% USE T8 %]
2
[% MACRO build_url BLOCK %]
3
 [% IF base_url %]
4
  [% base_url %]&page=[% page %]
5
 [% ELSE %]
6 6
  [% url_maker('page' => page) %]
7
 [%- END %]
8
[%- END %]
9
[%- IF pages.max > 1 %]
10
<div class="paginate">
11
[%- IF pages.page > 1 %]
12
  <a class="paginate-link paginate-prev" href="[% build_url(page=pages.page - 1) %]">&laquo; [% 'prev' | $T8 %]</a> [% ELSE %]<b>&laquo;</b> [% END %]
7
 [% END %]
8
[% END %]
9

  
10
[% IF pages.max > 1 %]
11
<div class="paginate control-panel">
12
[% IF pages.page > 1 %]
13
  <a class="paginate-link paginate-prev" href="[% build_url(page=pages.page - 1) %]" title="[% 'prev' | $T8 %]"></a> [% ELSE %]<span class="paginate-prev"></span> [% END %]
13 14
  [% FOR p = pages.common %]
14 15
    [% NEXT UNLESS p.visible %]
15 16
    [% IF p.active %]
16 17
      <a class="paginate-link paginate-page" href="[% build_url(page=p.page) %]">[% p.page %]</a>
17 18
    [% ELSE %]
18
      <b>[% p.page %]</b>
19
      <span class="paginate-page">[% p.page %]</span>
19 20
    [% END %]
20 21
  [% END %]
21 22
  [% IF pages.page < pages.max %]
22
    <a class="paginate-link paginate-next" href="[% build_url(page=pages.page + 1) %]">
23
      [% 'next' | $T8 %] &raquo;
24
    </a>
23
    <a class="paginate-link paginate-next" href="[% build_url(page=pages.page + 1) %]" title="[% 'next' | $T8 %]"></a>
25 24
  [% ELSE %]
26
    <b>&raquo;</b>
27
  [%- END %]
25
    <span class="paginate-next"></span>
26
  [% END %]
28 27
</div>
29
[%- END %]
28
[% END %]
30 29

  
31
[%- IF target %]
30
[% IF target %]
32 31
<script type="text/javascript">
33 32
  var target   = '[% target %]';
34 33
  $(function(){
......
45 44
    });
46 45
  });
47 46
</script>
48
[%- END %]
47
[% END %]

Auch abrufbar als: Unified diff