[MKDoc-commit] Added a condition to ensure the home page has no next and prev menu

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Thu Mar 24 17:02:29 GMT 2005


Log Message:
-----------
Added a condition to ensure the home page has no next and prev menu

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/templates/fragments/menu_next_prev:
        en.html
    mkd/templates/fragments/menu_next_prev/anonymous:
        en.html
    mkd/templates/fragments/menu_next_prev/editor:
        en.html
    mkd/templates/fragments/menu_next_prev/user:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/fragments/menu_next_prev/anonymous/Attic/en.html,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -Ltemplates/fragments/menu_next_prev/anonymous/en.html -Ltemplates/fragments/menu_next_prev/anonymous/en.html -u -r1.1.2.5 -r1.1.2.6
--- templates/fragments/menu_next_prev/anonymous/en.html
+++ templates/fragments/menu_next_prev/anonymous/en.html
@@ -7,7 +7,8 @@
 <div
   class="next-prev"
   xmlns:petal="http://purl.org/petal/1.0/"
-  petal:condition="false: self/user"
+  petal:condition="false: self/user;
+                   true: self/parent/children_showable;"
 >
 
   <p
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/fragments/menu_next_prev/editor/Attic/en.html,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -Ltemplates/fragments/menu_next_prev/editor/en.html -Ltemplates/fragments/menu_next_prev/editor/en.html -u -r1.1.2.3 -r1.1.2.4
--- templates/fragments/menu_next_prev/editor/en.html
+++ templates/fragments/menu_next_prev/editor/en.html
@@ -7,7 +7,9 @@
 <div
   class="next-prev"
   xmlns:petal="http://purl.org/petal/1.0/"
-  petal:condition="true:self/user; true:self/user/is_editor"
+  petal:condition="true: self/user; 
+                   true: self/user/is_editor;
+                   true: self/parent/children;"
 >
 
   <p
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/fragments/menu_next_prev/Attic/en.html,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -Ltemplates/fragments/menu_next_prev/en.html -Ltemplates/fragments/menu_next_prev/en.html -u -r1.1.2.8 -r1.1.2.9
--- templates/fragments/menu_next_prev/en.html
+++ templates/fragments/menu_next_prev/en.html
@@ -11,6 +11,7 @@
 <div 
   petal:omit-tag="" 
   xmlns:petal="http://purl.org/petal/1.0/"
+  petal:condition="false: self/cgi/path_info_eq '/'"
 >
   <div
     petal:omit-tag="" 
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/fragments/menu_next_prev/user/Attic/en.html,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -Ltemplates/fragments/menu_next_prev/user/en.html -Ltemplates/fragments/menu_next_prev/user/en.html -u -r1.1.2.4 -r1.1.2.5
--- templates/fragments/menu_next_prev/user/en.html
+++ templates/fragments/menu_next_prev/user/en.html
@@ -7,7 +7,9 @@
 <div
   class="next-prev"
   xmlns:petal="http://purl.org/petal/1.0/"
-  petal:condition="true:self/user; false:self/user/is_editor"
+  petal:condition="true: self/user; 
+                   false: self/user/is_editor;
+                   true: self/parent/children_showable;"
 >
 
   <p


More information about the MKDoc-commit mailing list