[Yanel-commits] rev 29440 -
public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt
michi at wyona.com
michi at wyona.com
Sat Dec 1 22:58:32 CET 2007
Author: michi
Date: 2007-12-01 22:58:32 +0100 (Sat, 01 Dec 2007)
New Revision: 29440
Modified:
public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt/foaf2xhtml.xsl
Log:
username fixed
Modified: public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt/foaf2xhtml.xsl
===================================================================
--- public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt/foaf2xhtml.xsl 2007-12-01 21:54:03 UTC (rev 29439)
+++ public/yanel/contributions/realms/foaf/src/resources/findfriend/xslt/foaf2xhtml.xsl 2007-12-01 21:58:32 UTC (rev 29440)
@@ -15,7 +15,7 @@
<xsl:param name="query" select="'QUERY_IS_NULL'"/>
<xsl:param name="type" select="'TYPE_IS_NULL'"/>
-<xsl:param name="username" select="'USERNAME_IS_NULL'"/>
+<xsl:param name="username" select="'foaf:uin'"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -27,7 +27,7 @@
<body>
<p>
<font size="-1">
-<a href="login.html">Login</a> | <!--<a href="register.html">Register</a> | --><a href="about.html">About</a> | <a href="developers.html">Developers</a>
+<xsl:choose><xsl:when test="$username = 'foaf:uin'"><a href="login.html">Login</a></xsl:when><xsl:otherwise><a href="?yanel.usecase=logout">Logout</a></xsl:otherwise></xsl:choose> | <!--<a href="register.html">Register</a> | --><a href="about.html">About</a> | <a href="developers.html">Developers</a>
</font>
</p>
More information about the Yanel-commits
mailing list