perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/tmpl/custom/html navbar_local_top prev_next_link
Date Tue, 05 Feb 2002 16:11:56 GMT
stas        02/02/05 08:11:56

  Modified:    tmpl/custom/html navbar_local_top prev_next_link
  Added:       src/images trans_pix.gif
  Log:
  - rewrite the prev_next_link to make it easier to read
  - display only a prev|next placeholder (transparent image) on the front
  page
  - fix a duplicated <div> tag
  
  Revision  Changes    Path
  1.1                  modperl-docs/src/images/trans_pix.gif
  
  	<<Binary file>>
  
  
  1.4       +1 -2      modperl-docs/tmpl/custom/html/navbar_local_top
  
  Index: navbar_local_top
  ===================================================================
  RCS file: /home/cvs/modperl-docs/tmpl/custom/html/navbar_local_top,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- navbar_local_top	3 Feb 2002 11:14:55 -0000	1.3
  +++ navbar_local_top	5 Feb 2002 16:11:56 -0000	1.4
  @@ -14,9 +14,8 @@
   </div>
   </td>
   <td align="right">
  -<div class="navbarlocal">
   [% INCLUDE prev_next_link %]
  -</div></td>
  +</td>
   </tr></table>
   
   
  
  
  
  1.7       +25 -20    modperl-docs/tmpl/custom/html/prev_next_link
  
  Index: prev_next_link
  ===================================================================
  RCS file: /home/cvs/modperl-docs/tmpl/custom/html/prev_next_link,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- prev_next_link	3 Feb 2002 11:38:07 -0000	1.6
  +++ prev_next_link	5 Feb 2002 16:11:56 -0000	1.7
  @@ -1,31 +1,36 @@
   [% # '<=prev | up | next=>' chapters navigation bar
  +   # if there is no up, prev or next we render only a transparent placeholder
      # expects to be set 
      # nav          - cache navigator object
      # rel_doc_root - relative docs path
   -%]
   <div class="navbarlocal">
  -[% 
  -   prev = nav.prev;
  +[%- prev = nav.prev;
  +   next = nav.next;
      IF prev;
  -        link = INCLUDE link prefix=rel_doc_root link=prev.meta.link;
  -        "<a href='$link'><img src='${doc.dir.abs_doc_root}/images/nav/page_prev.gif'
ALT='prev' border=0 width=48 height=20></a>";
  -   ELSE;
  -        "<img src='${doc.dir.abs_doc_root}/images/nav/page_noprev.gif' ALT='next' border=0
width=49 height=20>";
  -   END;
  --%]
  -[% IF rel_doc_root;
  -   "<a href='${rel_doc_root}/index.html'><img src='${doc.dir.abs_doc_root}/images/nav/page_parent.gif'
ALT='up' border=0 height=20 width=25></a>";
  -   ELSE;
  -   "<img src='${doc.dir.abs_doc_root}/images/nav/page_noparent.gif' ALT='up' border=0
height=20 width=25>";
  +       prev_link = INCLUDE link prefix=rel_doc_root link=prev.meta.link;
      END;
  --%]
  -[%- 
  -   next = nav.next;
      IF next;
  -        link = INCLUDE link prefix=rel_doc_root link=next.meta.link;
  -        "<a href='$link'><img src='${doc.dir.abs_doc_root}/images/nav/page_next.gif'
ALT='next' border=0 width=49 height=20></a>";
  -   ELSE;
  -        "<img src='${doc.dir.abs_doc_root}/images/nav/page_nonext.gif' ALT='next' border=0
width=49 height=20>";
  +       next_link = INCLUDE link prefix=rel_doc_root link=next.meta.link;
      END;
  -%]
  +-%]
  +[% IF prev_link || rel_doc_root || next_link -%]
  +    [%- IF prev_link -%]
  +<a href="[% prev_link %]"><img src="[% doc.dir.abs_doc_root %]/images/nav/page_prev.gif"
alt="previous page" border=0 width=48 height=20></a>
  +    [%- ELSE -%]
  +<img src="[% doc.dir.abs_doc_root %]/images/nav/page_noprev.gif" alt="next page" border=0
width=49 height=20>
  +    [%- END -%]
  +    [%- IF rel_doc_root -%]
  +<a href="[% rel_doc_root %]/index.html"><img src="[% doc.dir.abs_doc_root %]/images/nav/page_parent.gif"
alt="up" border=0 height=20 width=25></a>
  +    [%- ELSE -%]
  +<img src="[% doc.dir.abs_doc_root %]/images/nav/page_noparent.gif" alt="parent page"
border=0 height=20 width=25>
  +    [%- END -%]
  +    [%- IF next_link -%]
  +<a href="[% next_link %]"><img src="[% doc.dir.abs_doc_root %]/images/nav/page_next.gif"
alt="next page" border=0 width=48 height=20></a>
  +    [%- ELSE -%]
  +<img src="[% doc.dir.abs_doc_root %]/images/nav/page_nonext.gif" alt="next page" border=0
width=49 height=20>
  +    [%- END -%]
  +[%- ELSE -%]
  +<img src="[% doc.dir.abs_doc_root %]/images/trans_pix.gif" alt="navigation" border=0
width=123 height=20>
  +[%- END -%]
   </div>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message