[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'">
-&#160;(<a href="?phone">Privacy</a>)
+<xsl:choose>
+  <xsl:when test="s:policy" xmlns:s="http://www.wyona.org/security/1.0">
+&#160;(<a href="?yanel.policy=read&amp;content-element-id=phone">Show access policy</a>)
+  </xsl:when>
+  <xsl:otherwise>
+&#160;(<a href="?yanel.policy=create&amp;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