[MKDoc-commit] Child listing changed to make hidden documents show
up for editors
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Wed Mar 2 16:44:00 GMT 2005
Log Message:
-----------
Child listing changed to make hidden documents show up for editors
Tags:
----
mkdoc-1-6
Modified Files:
--------------
mkd/templates/document/default_child_listing_bottom:
en.html
mkd/templates/document/default_child_listing_top:
en.html
-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/document/default_child_listing_bottom/Attic/en.html,v
retrieving revision 1.1.2.15
retrieving revision 1.1.2.16
diff -Ltemplates/document/default_child_listing_bottom/en.html -Ltemplates/document/default_child_listing_bottom/en.html -u -r1.1.2.15 -r1.1.2.16
--- templates/document/default_child_listing_bottom/en.html
+++ templates/document/default_child_listing_bottom/en.html
@@ -93,9 +93,11 @@
</div>
</div>
- <!--? The following div is the only bit that is different from the default template ?-->
+ <!--? anon child listing omitting hidden documents ?-->
<div
- petal:condition="true: self/children_showable"
+ petal:condition="false: self/user;
+ true: self/children_showable;"
+ petal:omit-tag=""
>
<dl>
<div
@@ -127,8 +129,80 @@
</div>
</dl>
</div>
-
- </div>
+ <!--? user child listing omitting hidden documents ?-->
+ <div
+ petal:condition="true: self/user;
+ false: self/user/is_editor;
+ true: self/children_showable;"
+ petal:omit-tag=""
+ >
+ <dl>
+ <div
+ petal:repeat="child self/children_showable"
+ petal:omit-tag="string: 1"
+ >
+ <dt>
+ <a
+ href="http://example.com/"
+ hreflang="en"
+ xml:lang="en"
+ petal:content="child/title"
+ petal:attributes="href child/uri; hreflang child/lang; dir child/direction; lang child/lang; xml:lang child/lang;"
+ >
+ Document Title
+ </a>
+ </dt>
+ <dd>
+ <span
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
+ petal:content="child/description"
+ petal:attributes="dir child/direction; lang child/lang; xml:lang child/lang;"
+ >
+ Document Description
+ </span>
+ </dd>
+ </div>
+ </dl>
+ </div>
+ <!--? editor listing including hidden documents ?-->
+ <div
+ petal:condition="true: self/user;
+ true: self/user/is_editor;
+ true: self/children;"
+ petal:omit-tag=""
+ >
+ <dl>
+ <div
+ petal:repeat="child self/children"
+ petal:omit-tag="string: 1"
+ >
+ <dt>
+ <a
+ href="http://example.com/"
+ hreflang="en"
+ xml:lang="en"
+ petal:content="child/title"
+ petal:attributes="href child/uri; hreflang child/lang; dir child/direction; lang child/lang; xml:lang child/lang;"
+ >
+ Document Title
+ </a>
+ </dt>
+ <dd>
+ <span
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
+ petal:content="child/description"
+ petal:attributes="dir child/direction; lang child/lang; xml:lang child/lang;"
+ >
+ Document Description
+ </span>
+ </dd>
+ </div>
+ </dl>
+ </div>
<!--? This is the next and previous menu. ?-->
<?include file="/fragments/menu_next_prev/"?>
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/document/default_child_listing_top/Attic/en.html,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -Ltemplates/document/default_child_listing_top/en.html -Ltemplates/document/default_child_listing_top/en.html -u -r1.1.2.12 -r1.1.2.13
--- templates/document/default_child_listing_top/en.html
+++ templates/document/default_child_listing_top/en.html
@@ -83,8 +83,11 @@
class="mkdoc-content"
>
+ <!--? anon child listing omitting hidden documents ?-->
<div
- petal:condition="true: self/children_showable"
+ petal:condition="false: self/user;
+ true: self/children_showable;"
+ petal:omit-tag=""
>
<dl>
<div
@@ -115,7 +118,80 @@
</dd>
</div>
</dl>
-
+ </div>
+ <!--? user child listing omitting hidden documents ?-->
+ <div
+ petal:condition="true: self/user;
+ false: self/user/is_editor;
+ true: self/children_showable;"
+ petal:omit-tag=""
+ >
+ <dl>
+ <div
+ petal:repeat="child self/children_showable"
+ petal:omit-tag="string: 1"
+ >
+ <dt>
+ <a
+ href="http://example.com/"
+ hreflang="en"
+ xml:lang="en"
+ petal:content="child/title"
+ petal:attributes="href child/uri; hreflang child/lang; dir child/direction; lang child/lang; xml:lang child/lang;"
+ >
+ Document Title
+ </a>
+ </dt>
+ <dd>
+ <span
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
+ petal:content="child/description"
+ petal:attributes="dir child/direction; lang child/lang; xml:lang child/lang;"
+ >
+ Document Description
+ </span>
+ </dd>
+ </div>
+ </dl>
+ </div>
+ <!--? editor listing including hidden documents ?-->
+ <div
+ petal:condition="true: self/user;
+ true: self/user/is_editor;
+ true: self/children;"
+ petal:omit-tag=""
+ >
+ <dl>
+ <div
+ petal:repeat="child self/children"
+ petal:omit-tag="string: 1"
+ >
+ <dt>
+ <a
+ href="http://example.com/"
+ hreflang="en"
+ xml:lang="en"
+ petal:content="child/title"
+ petal:attributes="href child/uri; hreflang child/lang; dir child/direction; lang child/lang; xml:lang child/lang;"
+ >
+ Document Title
+ </a>
+ </dt>
+ <dd>
+ <span
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
+ petal:content="child/description"
+ petal:attributes="dir child/direction; lang child/lang; xml:lang child/lang;"
+ >
+ Document Description
+ </span>
+ </dd>
+ </div>
+ </dl>
</div>
<div
More information about the MKDoc-commit
mailing list