Conversation header improved

main
Inga 🏳‍🌈 14 years ago
parent 8ad07b9ac0
commit 250c83e626
  1. 2
      Builder/IISMainHandler/build.txt
  2. 50
      templates/Modern/Conversation.xslt
  3. 15
      templates/Modern/elems/MyHeader.xslt

@ -3,12 +3,10 @@
<xsl:import href="elems\Main.xslt"/>
<xsl:import href="elems\PMInfo.xslt"/>
<xsl:template name="specificTitle">
<xsl:value-of select="conversationInfo/interlocutor/account/user/name"/>
<xsl:value-of select="conversation/interlocutor/account/user/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<xsl:call-template name="conversationInfo"/>
<br />
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
@ -42,52 +40,6 @@
</td>
</tr>
</table>
<br />
<xsl:call-template name="conversationInfo"/>
</xsl:template>
<xsl:template name="conversationInfo">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr class="darktable">
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr class="darktable">
<td align="left" width="33%">
<font class="catandforum">
<a href="/My/Conversations/"><xsl:text>Ïðèâàòíûå ñîîáùåíèÿ</xsl:text></a>
<xsl:text> &gt;&gt; </xsl:text>
<xsl:value-of select="conversation/interlocutor/account/user/name"/>
</font>
</td>
<td width="33%" align="right">
<table border="0" class="tablesurround">
<tr>
<td class="navigation" nowrap="nowrap">
<a>
<img alt="*" src="/static/images/greyflat.gif" style="vertical-align: text-bottom" />
<xsl:text>Ïëîñêèé</xsl:text>
</a>
</td>
<td class="navigation" nowrap="nowrap">
<a>
<img src="/static/images/greythreaded.gif" border="0" style="vertical-align: text-bottom" alt="Äåðåâî" />
<xsl:text>Äåðåâî</xsl:text>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>

@ -17,13 +17,13 @@
<xsl:choose>
<xsl:when test="session/sessionKey and (session/indicators/unreadPrivateMessages != '0')">
<b>
<xsl:text>Сообщения (</xsl:text>
<xsl:text>Èíáîêñ (</xsl:text>
<xsl:value-of select="session/indicators/unreadPrivateMessages"/>
<xsl:text>)</xsl:text>
</b>
</xsl:when>
<xsl:otherwise>
<xsl:text>Сообщения (?)</xsl:text>
<xsl:text>Èíáîêñ</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
@ -31,6 +31,17 @@
<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>

Loading…
Cancel
Save