You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2002/07/29 10:19:19 UTC
cvs commit: modperl-docs/tmpl/custom/html changes_link index page tail
stas 2002/07/29 01:19:19
Modified: tmpl/custom/html changes_link index page tail
Log:
fix the changes "object" linking, previously the bug was because
doc_rel_root always points to the parent docset, now always referring to
the current docset's root
Revision Changes Path
1.8 +9 -5 modperl-docs/tmpl/custom/html/changes_link
Index: changes_link
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/changes_link,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- changes_link 15 Jul 2002 08:35:56 -0000 1.7
+++ changes_link 29 Jul 2002 08:19:18 -0000 1.8
@@ -1,8 +1,12 @@
-[%
- changes_id = doc.nav.index_node.extra.changes;
- IF changes_id && changes_id != doc.nav.id;
- changes_nav = doc.nav.by_id(changes_id);
+[%-# changes button
+ # nav - cache navigator object
+ # docset_rel_root - relative docs path
+ changes_id = nav.index_node.extra.changes;
+
+ IF changes_id && changes_id != nav.id;
+
+ changes_nav = nav.by_id(changes_id);
-%]
-<a href="[% doc.dir.rel_doc_root %]/[% changes_nav.meta.link %]"><img src="[%- doc.dir.abs_doc_root -%]/images/nav/page_changes.gif" width="60" height="16" border="0" alt="Changes file"></a>
+<a href="[% docset_rel_root %]/[% changes_nav.meta.link %]"><img src="[%- doc.dir.abs_doc_root -%]/images/nav/page_changes.gif" width="60" height="16" border="0" alt="Changes file"></a>
<br><br>
[% END -%]
1.23 +4 -1 modperl-docs/tmpl/custom/html/index
Index: index
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/index,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- index 28 Jun 2002 06:36:57 -0000 1.22
+++ index 29 Jul 2002 08:19:18 -0000 1.23
@@ -49,7 +49,10 @@
rel_doc_root=doc.dir.rel_doc_root;
-%]
- [%- INCLUDE tail -%]
+[%- INCLUDE tail
+ nav=doc.nav
+ docset_rel_root='.';
+-%]
</body>
1.24 +5 -1 modperl-docs/tmpl/custom/html/page
Index: page
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/page,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- page 28 Jun 2002 06:36:57 -0000 1.23
+++ page 29 Jul 2002 08:19:18 -0000 1.24
@@ -51,7 +51,11 @@
nav=doc.nav
rel_doc_root=doc.dir.rel_doc_root;
%]
- [%- INCLUDE tail -%]
+
+[%- INCLUDE tail
+ nav=doc.nav
+ docset_rel_root=doc.dir.rel_doc_root;
+-%]
</body>
</html>
1.21 +4 -1 modperl-docs/tmpl/custom/html/tail
Index: tail
===================================================================
RCS file: /home/cvs/modperl-docs/tmpl/custom/html/tail,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- tail 9 Jul 2002 10:33:47 -0000 1.20
+++ tail 29 Jul 2002 08:19:18 -0000 1.21
@@ -1,4 +1,7 @@
-
+[%-# tail
+ # nav - cache navigator object
+ # docset_rel_root - relative docs path
+-%]
<div class="footer">
<hr noshade size="1">
<!-- footer (tail )-->
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org