[Yanel-commits] rev 31149 -
public/yanel/contributions/realms/foaf/data/xslt
michi at wyona.com
michi at wyona.com
Sat Feb 2 22:59:46 CET 2008
Author: michi
Date: 2008-02-02 22:59:45 +0100 (Sat, 02 Feb 2008)
New Revision: 31149
Modified:
public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
Log:
check on access policy
Modified: public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
===================================================================
--- public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl 2008-02-02 21:56:09 UTC (rev 31148)
+++ public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl 2008-02-02 21:59:45 UTC (rev 31149)
@@ -190,7 +190,14 @@
<p>
Phone: <xsl:value-of select="@rdf:resource"/>
<xsl:if test="$yanel.toolbar-status='on'">
- (<a href="?phone">Privacy</a>)
+<xsl:choose>
+ <xsl:when test="s:policy" xmlns:s="http://www.wyona.org/security/1.0">
+ (<a href="?yanel.policy=read&content-element-id=phone">Show access policy</a>)
+ </xsl:when>
+ <xsl:otherwise>
+ (<a href="?yanel.policy=create&content-element-id=phone">No access policy yet!</a>)
+ </xsl:otherwise>
+</xsl:choose>
</xsl:if>
</p>
</xsl:template>
More information about the Yanel-commits
mailing list