[MKDoc-commit] Added some extra divs and conditions
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Thu Mar 24 16:26:26 GMT 2005
Log Message:
-----------
Added some extra divs and conditions
Tags:
----
mkdoc-1-6
Modified Files:
--------------
mkd/templates/fragments/menu_next_prev:
en.html
-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/fragments/menu_next_prev/Attic/en.html,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -Ltemplates/fragments/menu_next_prev/en.html -Ltemplates/fragments/menu_next_prev/en.html -u -r1.1.2.6 -r1.1.2.7
--- templates/fragments/menu_next_prev/en.html
+++ templates/fragments/menu_next_prev/en.html
@@ -1,11 +1,34 @@
<!--?
-This template is used for listing child documents.
+This template is used for next and previous menus.
?-->
-<div petal:omit-tag="" xmlns:petal="http://purl.org/petal/1.0/">
-<?include file="./anonymous"?>
-<?include file="./user"?>
-<?include file="./editor"?>
+<div
+ petal:omit-tag=""
+ xmlns:petal="http://purl.org/petal/1.0/"
+>
+ <div
+ petal:omit-tag=""
+ petal:condition="false: self/user"
+ >
+ <?include file="./anonymous"?>
+ </div>
+
+ <div
+ petal:omit-tag=""
+ petal:condition="true:self/user;
+ false:self/user/is_editor"
+ >
+ <?include file="./user"?>
+ </div>
+
+ <div
+ petal:omit-tag=""
+ petal:condition="true:self/user;
+ true:self/user/is_editor"
+ >
+ <?include file="./editor"?>
+ </div>
+
</div>
More information about the MKDoc-commit
mailing list