Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 251fb566

Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 251fb5669d2cb3b8647a1e434db913e819b19532
  • Vorgänger 945f7eb5
  • Nachfolger b67977cf

Neues kivitendo Design Aenderungen in templates/webpages/common/..

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 %]<a class='paginate-link paginate-prev' href='[% build_url(page=pages.page - 1) %]'>&laquo; [% 'prev' | $T8 %]</a> [% ELSE %]<b>&laquo;</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 %] &raquo;</a>[% ELSE %]<b>&raquo;</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 %]
14
  [% FOR p = pages.common %]
15
    [% NEXT UNLESS p.visible %]
16
    [% IF p.active %]
17
      <a class="paginate-link paginate-page" href="[% build_url(page=p.page) %]">[% p.page %]</a>
18
    [% ELSE %]
19
      <span class="paginate-page">[% p.page %]</span>
20
    [% END %]
21
  [% END %]
22
  [% IF pages.page < pages.max %]
23
    <a class="paginate-link paginate-next" href="[% build_url(page=pages.page + 1) %]" title="[% 'next' | $T8 %]"></a>
24
  [% ELSE %]
25
    <span class="paginate-next"></span>
26
  [% END %]
17 27
</div>
18
[%- END %]
19
[%- IF target %]
20
<script type='text/javascript'>
28
[% END %]
29

  
30
[% IF target %]
31
<script type="text/javascript">
21 32
  var target   = '[% target %]';
22 33
  $(function(){
23 34
    $('.paginate-link').click(function(event){
......
33 44
    });
34 45
  });
35 46
</script>
36
[%- END %]
47
[% END %]

Auch abrufbar als: Unified diff