|
|
|
@ -4,57 +4,22 @@ |
|
|
|
|
<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"> |
|
|
|
|
<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"/> |
|
|
|
|
</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> |
|
|
|
|
</div> |
|
|
|
|
<div class="linkscontainer" style="float:right"> |
|
|
|
|
<xsl:if test="isOwner='true'"> |
|
|
|
|
<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"/> |
|
|
|
|
<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: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"> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:if test="$isReplyDisabled='false'"> |
|
|
|
|
<xsl:if test="/root/session/sessionKey"> |
|
|
|
@ -68,35 +33,19 @@ |
|
|
|
|
<xsl:with-param name="alt">Îòâåò</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<a> |
|
|
|
|
<xsl:if test="isOwner='true'"> |
|
|
|
|
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Edit/</xsl:attribute> |
|
|
|
|
<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">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:with-param name="src">email2.gif</xsl:with-param> |
|
|
|
|
<xsl:with-param name="alt">Îòâåòèòü â ÏÌ</xsl:with-param> |
|
|
|
|
</xsl:apply-templates> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="isPunishmentEnabled='true'"> |
|
|
|
|
<a> |
|
|
|
@ -116,101 +65,73 @@ |
|
|
|
|
</a> |
|
|
|
|
</xsl:otherwise> |
|
|
|
|
</xsl:choose> |
|
|
|
|
</td> |
|
|
|
|
<td class="navigation"> |
|
|
|
|
</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: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> |
|
|
|
|
<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> |
|
|
|
|
</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 /> |
|
|
|
|
<xsl:text>]</xsl:text> |
|
|
|
|
</font> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</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 != ''"> |
|
|
|
|
<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 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> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</xsl:if> |
|
|
|
|
</table> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</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> |
|
|
|
|
<span style="font-size:0.8em" class="revision"> |
|
|
|
|
<xsl:value-of select="revision"/> |
|
|
|
|
<xsl:text> ðàç, ïîñëåäíèé ðàç </xsl:text> |
|
|
|
|
<xsl:text> ïðàâîê, ïîñëåäíÿÿ </xsl:text> |
|
|
|
|
<xsl:apply-templates select="lastChangeDate/date" mode="dateTime"/> |
|
|
|
|
<br/> |
|
|
|
|
<br/> |
|
|
|
|
</font> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</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: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="punishmentType/weightDescription"/> |
|
|
|
|
<xsl:text>). </xsl:text> |
|
|
|
|
<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:text>).</xsl:text> |
|
|
|
|
<xsl:if test="transfer"> |
|
|
|
|
<xsl:text> </xsl:text> |
|
|
|
|
<xsl:choose> |
|
|
|
|
<xsl:when test="transfer/isSubthreadTransfer='true'"> |
|
|
|
|
<xsl:text>Ïîäâåòêà áûëà ïåðåíåñåíà</xsl:text> |
|
|
|
@ -239,31 +160,20 @@ |
|
|
|
|
</xsl:attribute> |
|
|
|
|
<xsl:value-of select="transfer/oldBoard/board/name"/> |
|
|
|
|
</a> |
|
|
|
|
<br/> |
|
|
|
|
<xsl:text>.</xsl:text> |
|
|
|
|
</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:text> </xsl:text> |
|
|
|
|
<xsl:text>Èñõîäíûé ñëîé </xsl:text> |
|
|
|
|
<xsl:value-of select="layerChange/oldLayer/layer/name"/> |
|
|
|
|
<br/> |
|
|
|
|
<xsl:text>.</xsl:text> |
|
|
|
|
</xsl:if> |
|
|
|
|
</span> |
|
|
|
|
</xsl:if> |
|
|
|
|
<br/> |
|
|
|
|
</font> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
<xsl:template match="specific/thread"> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<font size="-1"> |
|
|
|
|
<div class="discussionlinkcontainer"> |
|
|
|
|
<a> |
|
|
|
|
<xsl:attribute name="href"> |
|
|
|
|
<xsl:text>/Thread/</xsl:text> |
|
|
|
@ -274,14 +184,7 @@ |
|
|
|
|
<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:text>Îáñóäèòü</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:if test="totalPosts > 1"> |
|
|
|
|
<span class="separate"><xsl:value-of select="totalPosts"/></span> |
|
|
|
@ -294,11 +197,7 @@ |
|
|
|
|
</a> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:if> |
|
|
|
|
<br/> |
|
|
|
|
<br/> |
|
|
|
|
</font> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</div> |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
</xsl:stylesheet> |