Logout link improved

main
Inga 🏳‍🌈 14 years ago
parent 34ca199fe3
commit 5b713232ec
  1. 2
      Builder/IISMainHandler/build.txt
  2. 7
      templates/Modern/elems/Header.xslt
  3. 14
      templates/Modern/elems/MyHeader.xslt

@ -16,6 +16,7 @@
<xsl:param name="text"/> <xsl:param name="text"/>
<xsl:param name="isDisabled"/> <xsl:param name="isDisabled"/>
<xsl:param name="postfix"/> <xsl:param name="postfix"/>
<xsl:param name="skipDatePostfix"/>
<a target="_top"> <a target="_top">
<xsl:choose> <xsl:choose>
<xsl:when test="$isDisabled='true'"> <xsl:when test="$isDisabled='true'">
@ -25,7 +26,11 @@
<xsl:if test="starts-with(/root/currentUrl, $url)"> <xsl:if test="starts-with(/root/currentUrl, $url)">
<xsl:attribute name="class">selected</xsl:attribute> <xsl:attribute name="class">selected</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:attribute name="href"><xsl:value-of select="$url"/><xsl:value-of select="$postfix"/>?<xsl:value-of select="current/date/ticks"/></xsl:attribute> <xsl:attribute name="href">
<xsl:value-of select="$url"/>
<xsl:value-of select="$postfix"/>
<xsl:if test="not($skipDatePostfix='true')">?<xsl:value-of select="current/date/ticks"/></xsl:if>
</xsl:attribute>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:value-of select="$text"/> <xsl:value-of select="$text"/>

@ -66,12 +66,14 @@
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text> <xsl:text>&#160;&#160;&#160;</xsl:text>
<a target="_top"> <xsl:call-template name="headerLink">
<xsl:if test="session/sessionKey"> <xsl:with-param name="url">/do/Logout/?sessionKey=<xsl:value-of select="session/sessionKey"/></xsl:with-param>
<xsl:attribute name="href">/do/Logout/?sessionKey=<xsl:value-of select="session/sessionKey"/></xsl:attribute> <xsl:with-param name="text">Âûõîä</xsl:with-param>
</xsl:if> <xsl:with-param name="isDisabled">
<xsl:text>Âûõîä</xsl:text> <xsl:if test="not(session/sessionKey)">true</xsl:if>
</a> </xsl:with-param>
<xsl:with-param name="skipDatePostfix">true</xsl:with-param>
</xsl:call-template>
<xsl:if test="starts-with(/root/currentUrl, '/My/Conversations/')"> <xsl:if test="starts-with(/root/currentUrl, '/My/Conversations/')">
<xsl:call-template name="conversationsHeader"/> <xsl:call-template name="conversationsHeader"/>
</xsl:if> </xsl:if>

Loading…
Cancel
Save