[Yanel-commits] rev 29917 - public/yanel/contributions/realms/foaf/data/xslt

michi at wyona.com michi at wyona.com
Sun Dec 16 12:01:33 CET 2007


Author: michi
Date: 2007-12-16 12:01:32 +0100 (Sun, 16 Dec 2007)
New Revision: 29917

Modified:
   public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
Log:
send invitation links added

Modified: public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl
===================================================================
--- public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl	2007-12-16 10:47:01 UTC (rev 29916)
+++ public/yanel/contributions/realms/foaf/data/xslt/foaf2xhtml.xsl	2007-12-16 11:01:32 UTC (rev 29917)
@@ -23,7 +23,7 @@
 <xsl:param name="yanel.path" select="'PATH_IS_NULL'"/>
 <xsl:param name="yanel.back2context" select="'BACK2CONTEXT_IS_NULL'"/>
 <xsl:param name="yarep.back2realm" select="'BACK2REALM_IS_NULL'"/>
-<xsl:param name="username" select="'USERNAME_IS_NULL'"/>
+<xsl:param name="username" select="'foaf:uin'"/>
 <xsl:param name="language" select="'LANGUAGE_IS_NULL'"/>
 <xsl:param name="content-language" select="'CONTENT_LANGUAGE_IS_NULL'"/>
 
@@ -42,7 +42,7 @@
 <body>
 <table border="1">
 <tr>
-<td colspan="2"><a href="{$yarep.back2realm}index.html">Find A Friend</a></td><td align="right"><xsl:choose><xsl:when test="$username != 'USERNAME_IS_NULL'"><a href="?yanel.usecase=logout">Logout</a></xsl:when><xsl:otherwise><a href="{$yarep.back2realm}login.html">Login</a></xsl:otherwise></xsl:choose> | <a href="?yanel.toolbar=on">Toolbar</a></td>
+<td colspan="2"><a href="{$yarep.back2realm}index.html">Find A Friend</a></td><td align="right"><xsl:choose><xsl:when test="$username != 'foaf:uin'"><a href="?yanel.usecase=logout">Logout</a> (<xsl:value-of select="$username"/>)</xsl:when><xsl:otherwise><a href="{$yarep.back2realm}login.html">Login</a></xsl:otherwise></xsl:choose> | <a href="?yanel.toolbar=on">Toolbar</a></td>
 </tr>
 <tr>
 <td>
@@ -80,9 +80,7 @@
 <xsl:apply-templates select="/wyona:foaf/wyona:third-party-source" mode="atom"/>
 
 <br/><br/>
-- Send invitation
-<br/>
-- Add to your address book
+<xsl:choose><xsl:when test="$username = 'foaf:uin'"><a href="../add-friend.html?href=TODO">Add to your address book</a> | <a href="../send-invitation.html?profile-of-friend=TODO">Send invitation</a></xsl:when><xsl:otherwise><a href="../profiles/{$username}/add-friend.html?href=TODO">Add to your address book</a> | <a href="../profiles/{$username}/send-invitation.html?profile-of-friend=TODO">Send invitation</a></xsl:otherwise></xsl:choose>
 </td>
 </tr>
 </table>



More information about the Yanel-commits mailing list