|
|
|
@ -4,301 +4,200 @@ |
|
|
|
|
<xsl:import href="UserInfoBar.xslt"/> |
|
|
|
|
<xsl:template match="post"> |
|
|
|
|
<xsl:param name="isReplyDisabled">true</xsl:param> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<table width="100%" cellspacing="1" cellpadding="3" border="0"> |
|
|
|
|
<tr> |
|
|
|
|
<td width="120" valign="top" class="darktable" rowspan="2"> |
|
|
|
|
<a><xsl:attribute name="name">Post<xsl:value-of select="id"/></xsl:attribute></a> |
|
|
|
|
<xsl:apply-templates select="poster/user" mode="userInfoBar"/> |
|
|
|
|
</td> |
|
|
|
|
<td class="subjecttable"> |
|
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
|
|
|
<tr> |
|
|
|
|
<td align="left" width="80%" valign="top"> |
|
|
|
|
<a target="_blank" class="separate"> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/</xsl:attribute> |
|
|
|
|
<img border="0" alt="" style="vertical-align: text-bottom"> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="isUnread='true'"> |
|
|
|
|
<xsl:attribute name="src">/static/images/message-<xsl:value-of select="layerName"/>-notread.gif</xsl:attribute> |
|
|
|
|
</xsl:when> |
|
|
|
|
<xsl:otherwise> |
|
|
|
|
<xsl:attribute name="src">/static/images/message-<xsl:value-of select="layerName"/>-read.gif</xsl:attribute> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
</img> |
|
|
|
|
</a> |
|
|
|
|
<b class="separate"><xsl:value-of select="title"/></b> |
|
|
|
|
<xsl:if test="isUnread='true'"> |
|
|
|
|
<img alt="new" src="/static/images/new.gif" /> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:if test="parentPost/post"> |
|
|
|
|
<font class="small separate"> |
|
|
|
|
<xsl:text>[</xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="title"><xsl:value-of select="parentPost/post/bodyShort"/></xsl:attribute> |
|
|
|
|
<xsl:attribute name="href">/Thread/<xsl:value-of select="threadId"/>/p<xsl:value-of select="parentPost/post/id"/>/</xsl:attribute> |
|
|
|
|
<xsl:text>re: </xsl:text> |
|
|
|
|
<xsl:value-of select="parentPost/post/poster/user/name"/> |
|
|
|
|
</a> |
|
|
|
|
<xsl:text>]</xsl:text> |
|
|
|
|
</font> |
|
|
|
|
</xsl:if> |
|
|
|
|
<br /> |
|
|
|
|
<font class="small" style="padding-left:2em"><xsl:apply-templates select="postDate/date" mode="dateTime"/></font> |
|
|
|
|
</td> |
|
|
|
|
<td align="right" width="20%"> |
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
|
|
|
|
<tr> |
|
|
|
|
<td align="right"> |
|
|
|
|
<table class="tablesurround" border="0"> |
|
|
|
|
<tr> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:if test="$isReplyDisabled='false'"> |
|
|
|
|
<xsl:if test="/root/session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Reply/</xsl:attribute> |
|
|
|
|
<xsl:attribute name="onClick">submitSelText(this.href);return false;</xsl:attribute> |
|
|
|
|
<xsl:attribute name="onMouseDown">submitSelText(this.href);return false;</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">reply.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Îòâåò</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:if test="isOwner='true'"> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Edit/</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">edit.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Ïðàâêà</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
<a target="_blank"> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">print.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Ïå÷àòü</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">addreminder.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Çàïîìíèòü</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="isPunishmentEnabled='true'"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Punish/</xsl:attribute> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">punish.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Ìîäåðèðîâàòü</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</xsl:when> |
|
|
|
|
<xsl:otherwise> |
|
|
|
|
<a> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">notifymod.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Èçâåñòèòü ìîäåðàòîðà</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
</td> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:if test="/root/session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/PMReply/</xsl:attribute> |
|
|
|
|
<xsl:attribute name="onClick">submitSelText(this.href);return false;</xsl:attribute> |
|
|
|
|
<xsl:attribute name="onMouseDown">submitSelText(this.href);return false;</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">email2.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Îòâåòèòü â ÏÌ</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td class="lighttable"> |
|
|
|
|
<table width="100%" cellspacing="0" cellpadding="0" style="table-layout: fixed"> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<br /> |
|
|
|
|
<font class="post"> |
|
|
|
|
<xsl:value-of select="body" disable-output-escaping="yes" /> |
|
|
|
|
<!--<xsl:copy-of select="body"/>--> |
|
|
|
|
<br /> |
|
|
|
|
<br /> |
|
|
|
|
</font> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<xsl:apply-templates select="specific"/> |
|
|
|
|
<xsl:if test="poster/user/signature != ''"> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<div style="width:100%;max-height:50px;height: expression( this.scrollHeight > 49 ? '50px' : 'auto' );overflow:hidden"> |
|
|
|
|
<font size="-2"><xsl:value-of select="poster/user/signature" disable-output-escaping="yes" /><br /></font> |
|
|
|
|
</div> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</xsl:if> |
|
|
|
|
</table> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<div class="postcontainer" style="clear:both"> |
|
|
|
|
<a><xsl:attribute name="name">Post<xsl:value-of select="id"/></xsl:attribute></a> |
|
|
|
|
<div class="userbarcontainer" style="float:left"> |
|
|
|
|
<xsl:apply-templates select="poster/user" mode="userInfoBar"/> |
|
|
|
|
</div> |
|
|
|
|
<div class="linkscontainer" style="float:right"> |
|
|
|
|
<xsl:if test="isOwner='true'"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Edit/</xsl:attribute> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">edit.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Ïðàâêà</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:if test="$isReplyDisabled='false'"> |
|
|
|
|
<xsl:if test="/root/session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Reply/</xsl:attribute> |
|
|
|
|
<xsl:attribute name="onClick">submitSelText(this.href);return false;</xsl:attribute> |
|
|
|
|
<xsl:attribute name="onMouseDown">submitSelText(this.href);return false;</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">reply.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Îòâåò</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:if test="/root/session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/PMReply/</xsl:attribute> |
|
|
|
|
<xsl:attribute name="onClick">submitSelText(this.href);return false;</xsl:attribute> |
|
|
|
|
<xsl:attribute name="onMouseDown">submitSelText(this.href);return false;</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">email2.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Îòâåòèòü â ÏÌ</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="isPunishmentEnabled='true'"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Punish/</xsl:attribute> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">punish.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Ìîäåðèðîâàòü</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</xsl:when> |
|
|
|
|
<xsl:otherwise> |
|
|
|
|
<a> |
|
|
|
|
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> |
|
|
|
|
<xsl:with-param name="src">notifymod.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Èçâåñòèòü ìîäåðàòîðà</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
</div> |
|
|
|
|
<div class="postcontent"> |
|
|
|
|
<a target="_blank" class="separate"> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/</xsl:attribute> |
|
|
|
|
<xsl:variable name="postDate"><xsl:apply-templates select="postDate/date" mode="dateTime"/></xsl:variable> |
|
|
|
|
<xsl:attribute name="title"><xsl:value-of select="$postDate"/></xsl:attribute> |
|
|
|
|
<img border="0" alt="" style="vertical-align: text-bottom"> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="isUnread='true'"> |
|
|
|
|
<xsl:attribute name="src">/static/images/message-<xsl:value-of select="layerName"/>-notread.gif</xsl:attribute> |
|
|
|
|
</xsl:when> |
|
|
|
|
<xsl:otherwise> |
|
|
|
|
<xsl:attribute name="src">/static/images/message-<xsl:value-of select="layerName"/>-read.gif</xsl:attribute> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
</img> |
|
|
|
|
</a> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<xsl:if test="parentPost/post"> |
|
|
|
|
<font class="small separate"> |
|
|
|
|
<xsl:text>[</xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="title"><xsl:value-of select="parentPost/post/bodyShort"/></xsl:attribute> |
|
|
|
|
<xsl:attribute name="href">/Thread/<xsl:value-of select="threadId"/>/p<xsl:value-of select="parentPost/post/id"/>/</xsl:attribute> |
|
|
|
|
<xsl:text>re: </xsl:text> |
|
|
|
|
<xsl:value-of select="parentPost/post/poster/user/name"/> |
|
|
|
|
</a> |
|
|
|
|
<xsl:text>]</xsl:text> |
|
|
|
|
</font> |
|
|
|
|
</xsl:if> |
|
|
|
|
<div class="postbody"> |
|
|
|
|
<xsl:value-of select="body" disable-output-escaping="yes" /> |
|
|
|
|
</div> |
|
|
|
|
<xsl:apply-templates select="specific"/> |
|
|
|
|
<xsl:if test="poster/user/signature != ''"> |
|
|
|
|
<div style="width:100%;max-height:3.5em;height: expression( this.scrollHeight > 49 ? '50px' : 'auto' );overflow:hidden;text-align:right;font-size:0.8em;"> |
|
|
|
|
<xsl:value-of select="poster/user/signature" disable-output-escaping="yes" /> |
|
|
|
|
</div> |
|
|
|
|
</xsl:if> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
<xsl:template match="specific/changeInfo"> |
|
|
|
|
<xsl:if test="(revision != '') and (revision != '0')"> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<font size="-2"> |
|
|
|
|
<xsl:text>Ýòî ñîîáùåíèå áûëî îòðåäàêòèðîâàíî ïîëüçîâàòåëåì </xsl:text> |
|
|
|
|
<xsl:value-of select="revision"/> |
|
|
|
|
<xsl:text> ðàç, ïîñëåäíèé ðàç </xsl:text> |
|
|
|
|
<xsl:apply-templates select="lastChangeDate/date" mode="dateTime"/> |
|
|
|
|
<br/> |
|
|
|
|
<br/> |
|
|
|
|
</font> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<span style="font-size:0.8em" class="revision"> |
|
|
|
|
<xsl:value-of select="revision"/> |
|
|
|
|
<xsl:text> ïðàâîê, ïîñëåäíÿÿ </xsl:text> |
|
|
|
|
<xsl:apply-templates select="lastChangeDate/date" mode="dateTime"/> |
|
|
|
|
</span> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
<xsl:template match="specific/punishment"> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<font size="-2"> |
|
|
|
|
<xsl:attribute name="class"> |
|
|
|
|
<xsl:text>punishment</xsl:text> |
|
|
|
|
<xsl:if test="isWithdrawed='true'"> |
|
|
|
|
<xsl:text> withdrawed</xsl:text> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:attribute> |
|
|
|
|
<xsl:value-of select="punishmentType/description"/> |
|
|
|
|
<xsl:text> (</xsl:text> |
|
|
|
|
<xsl:value-of select="punishmentType/weightDescription"/> |
|
|
|
|
<xsl:text>). </xsl:text> |
|
|
|
|
<xsl:value-of select="comment"/> |
|
|
|
|
<xsl:text> (</xsl:text> |
|
|
|
|
<xsl:apply-templates select="moderator/user" mode="userLink"/> |
|
|
|
|
<xsl:text>, </xsl:text> |
|
|
|
|
<xsl:apply-templates select="punishmentDate/date" mode="dateTime"/> |
|
|
|
|
<xsl:text>)</xsl:text> |
|
|
|
|
<br/> |
|
|
|
|
<xsl:if test="transfer"> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="transfer/isSubthreadTransfer='true'"> |
|
|
|
|
<xsl:text>Ïîäâåòêà áûëà ïåðåíåñåíà</xsl:text> |
|
|
|
|
</xsl:when> |
|
|
|
|
<xsl:otherwise> |
|
|
|
|
<xsl:text>Ñîîáùåíèå áûëî ïåðåíåñåíî</xsl:text> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
<xsl:if test="transfer/oldParentPost"> |
|
|
|
|
<xsl:text> èç îáñóæäåíèÿ ñîîáùåíèÿ </xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="href"> |
|
|
|
|
<xsl:text>/Post/</xsl:text> |
|
|
|
|
<xsl:value-of select="transfer/oldParentPost/post/id"/> |
|
|
|
|
<xsl:text>/</xsl:text> |
|
|
|
|
</xsl:attribute> |
|
|
|
|
<xsl:value-of select="transfer/oldParentPost/post/title"/> |
|
|
|
|
</a> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:text> èç ðàçäåëà </xsl:text> |
|
|
|
|
<xsl:if test="not(isWithdrawed='true')"> |
|
|
|
|
<span style="font-size:0.8em" class="punishment"> |
|
|
|
|
<xsl:value-of select="punishmentType/description"/> |
|
|
|
|
<xsl:text>. </xsl:text> |
|
|
|
|
<xsl:value-of select="comment"/> |
|
|
|
|
<xsl:text> (</xsl:text> |
|
|
|
|
<xsl:apply-templates select="moderator/user" mode="userLink"/> |
|
|
|
|
<xsl:text>, </xsl:text> |
|
|
|
|
<xsl:apply-templates select="punishmentDate/date" mode="dateTime"/> |
|
|
|
|
<xsl:text>).</xsl:text> |
|
|
|
|
<xsl:if test="transfer"> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="transfer/isSubthreadTransfer='true'"> |
|
|
|
|
<xsl:text>Ïîäâåòêà áûëà ïåðåíåñåíà</xsl:text> |
|
|
|
|
</xsl:when> |
|
|
|
|
<xsl:otherwise> |
|
|
|
|
<xsl:text>Ñîîáùåíèå áûëî ïåðåíåñåíî</xsl:text> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
<xsl:if test="transfer/oldParentPost"> |
|
|
|
|
<xsl:text> èç îáñóæäåíèÿ ñîîáùåíèÿ </xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="href"> |
|
|
|
|
<xsl:text>/Board/</xsl:text> |
|
|
|
|
<xsl:value-of select="transfer/oldBoard/board/id"/> |
|
|
|
|
<xsl:text>/Post/</xsl:text> |
|
|
|
|
<xsl:value-of select="transfer/oldParentPost/post/id"/> |
|
|
|
|
<xsl:text>/</xsl:text> |
|
|
|
|
</xsl:attribute> |
|
|
|
|
<xsl:value-of select="transfer/oldBoard/board/name"/> |
|
|
|
|
<xsl:value-of select="transfer/oldParentPost/post/title"/> |
|
|
|
|
</a> |
|
|
|
|
<br/> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:if test="layerChange"> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="layerChange/isSubthreadChange='true'"> |
|
|
|
|
<xsl:text>Ñëîé ïîäâåòêè áûë èçìåí¸í</xsl:text> |
|
|
|
|
</xsl:when> |
|
|
|
|
<xsl:otherwise> |
|
|
|
|
<xsl:text>Ñëîé ñîîáùåíèÿ áûë èçìåí¸í</xsl:text> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
<xsl:text> ñ </xsl:text> |
|
|
|
|
<xsl:value-of select="layerChange/oldLayer/layer/name"/> |
|
|
|
|
<br/> |
|
|
|
|
</xsl:if> |
|
|
|
|
<br/> |
|
|
|
|
</font> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
<xsl:template match="specific/thread"> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<font size="-1"> |
|
|
|
|
<xsl:text> èç ðàçäåëà </xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="href"> |
|
|
|
|
<xsl:text>/Thread/</xsl:text> |
|
|
|
|
<xsl:value-of select="id"/> |
|
|
|
|
<xsl:text>/Board/</xsl:text> |
|
|
|
|
<xsl:value-of select="transfer/oldBoard/board/id"/> |
|
|
|
|
<xsl:text>/</xsl:text> |
|
|
|
|
<xsl:if test="afterLastRead<=lastPostId"> |
|
|
|
|
<xsl:text>p</xsl:text> |
|
|
|
|
<xsl:value-of select="afterLastRead"/> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:attribute> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="totalPosts > 1"> |
|
|
|
|
<xsl:text>Îáñóæäåíèå ýòîãî ñîîáùåíèÿ</xsl:text> |
|
|
|
|
</xsl:when> |
|
|
|
|
<xsl:otherwise> |
|
|
|
|
<xsl:text>Íà÷àòü îáñóæäåíèå</xsl:text> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
<xsl:value-of select="transfer/oldBoard/board/name"/> |
|
|
|
|
</a> |
|
|
|
|
<xsl:if test="totalPosts > 1"> |
|
|
|
|
<span class="separate"><xsl:value-of select="totalPosts"/></span> |
|
|
|
|
<xsl:if test="totalNewPosts and totalNewPosts!='0'"> |
|
|
|
|
<a class="cup separate"> |
|
|
|
|
<xsl:if test="/root/session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/do/MarkThreadAsRead/<xsl:value-of select="id"/>/p<xsl:value-of select="lastPostId"/>/</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<font class="new"><i>(<xsl:value-of select="totalNewPosts"/>)</i></font> |
|
|
|
|
</a> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:text>.</xsl:text> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:if test="layerChange"> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<xsl:text>Èñõîäíûé ñëîé </xsl:text> |
|
|
|
|
<xsl:value-of select="layerChange/oldLayer/layer/name"/> |
|
|
|
|
<xsl:text>.</xsl:text> |
|
|
|
|
</xsl:if> |
|
|
|
|
</span> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
<xsl:template match="specific/thread"> |
|
|
|
|
<div class="discussionlinkcontainer"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="href"> |
|
|
|
|
<xsl:text>/Thread/</xsl:text> |
|
|
|
|
<xsl:value-of select="id"/> |
|
|
|
|
<xsl:text>/</xsl:text> |
|
|
|
|
<xsl:if test="afterLastRead<=lastPostId"> |
|
|
|
|
<xsl:text>p</xsl:text> |
|
|
|
|
<xsl:value-of select="afterLastRead"/> |
|
|
|
|
</xsl:if> |
|
|
|
|
<br/> |
|
|
|
|
<br/> |
|
|
|
|
</font> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</xsl:attribute> |
|
|
|
|
<xsl:text>Îáñóäèòü</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:if test="totalPosts > 1"> |
|
|
|
|
<span class="separate"><xsl:value-of select="totalPosts"/></span> |
|
|
|
|
<xsl:if test="totalNewPosts and totalNewPosts!='0'"> |
|
|
|
|
<a class="cup separate"> |
|
|
|
|
<xsl:if test="/root/session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/do/MarkThreadAsRead/<xsl:value-of select="id"/>/p<xsl:value-of select="lastPostId"/>/</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<font class="new"><i>(<xsl:value-of select="totalNewPosts"/>)</i></font> |
|
|
|
|
</a> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:if> |
|
|
|
|
</div> |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
</xsl:stylesheet> |