Conversation header improved

main
Inga 🏳‍🌈 14 years ago
parent 250c83e626
commit 34ca199fe3
  1. 2
      Builder/IISMainHandler/build.txt
  2. 29
      templates/Modern/elems/ConversationsHeader.xslt
  3. 16
      templates/Modern/elems/MyHeader.xslt

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:template name="conversationsHeader">
<div class="header">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/List/</xsl:with-param>
<xsl:with-param name="text">Ñïèñîê</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/NewPM/</xsl:with-param>
<xsl:with-param name="text">Íîâîå (?)</xsl:with-param>
</xsl:call-template>
<xsl:if test="conversation">
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">
<xsl:text>/My/Conversations/Conversation/</xsl:text>
<xsl:value-of select="conversation/interlocutor/account/id"/>
<xsl:text>/</xsl:text>
</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="conversation/interlocutor/account/user/name"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</div>
</xsl:template>
</xsl:stylesheet>

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="ConversationsHeader.xslt"/>
<xsl:template name="myHeader">
<div class="header">
<xsl:call-template name="headerLink">
@ -31,17 +33,6 @@
<xsl:if test="not(session/sessionKey)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:if test="conversation">
<xsl:text> &#8594; </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">
<xsl:text>/My/Conversations/Conversation/</xsl:text>
<xsl:value-of select="conversation/interlocutor/account/id"/>
<xsl:text>/</xsl:text>
</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="conversation/interlocutor/account/user/name"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Settings/</xsl:with-param>
@ -81,6 +72,9 @@
</xsl:if>
<xsl:text>Âûõîä</xsl:text>
</a>
<xsl:if test="starts-with(/root/currentUrl, '/My/Conversations/')">
<xsl:call-template name="conversationsHeader"/>
</xsl:if>
</div>
</xsl:template>
</xsl:stylesheet>

Loading…
Cancel
Save