Legacy LastPost info display restored:

main
Inga 🏳‍🌈 14 years ago
parent cb4f605c78
commit 524231adc8
  1. 2
      Builder/IISMainHandler/build.txt
  2. 13
      templates/Full/elems/BoardInfo.xslt
  3. 13
      templates/Full/elems/ThreadInfo.xslt

@ -53,25 +53,12 @@
</xsl:template> </xsl:template>
<xsl:template match="lastPostInfo"> <xsl:template match="lastPostInfo">
<xsl:choose>
<xsl:when test="post and (post/id &gt; 10000000)">
<xsl:apply-templates select="post/postDate/date" mode="dateTime"/><br /> <xsl:apply-templates select="post/postDate/date" mode="dateTime"/><br />
<a> <a>
<xsl:attribute name="href">/Thread/<xsl:value-of select="post/threadId"/>/p<xsl:value-of select="post/id"/>/</xsl:attribute> <xsl:attribute name="href">/Thread/<xsl:value-of select="post/threadId"/>/p<xsl:value-of select="post/id"/>/</xsl:attribute>
<xsl:text>îň </xsl:text> <xsl:text>îň </xsl:text>
<xsl:value-of select="post/poster/user/name"/> <xsl:value-of select="post/poster/user/name"/>
</a> </a>
<xsl:text> </xsl:text>
<img alt="new" src="/static/images/new.gif">
<xsl:if test="post/id &lt; 10000000">
<xsl:attribute name="style">visibility:hidden</xsl:attribute>
</xsl:if>
</img>
</xsl:when>
<xsl:otherwise>
<xsl:text>&#160;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template> </xsl:template>
<xsl:template match="subBoards/board"> <xsl:template match="subBoards/board">

@ -70,20 +70,7 @@
</xsl:if> </xsl:if>
</td> </td>
<td nowrap="nowrap" align="center"> <td nowrap="nowrap" align="center">
<xsl:choose>
<xsl:when test="lastPostId &gt; 10000000">
<xsl:apply-templates select="lastPostDate/date" mode="dateTime"/> <xsl:apply-templates select="lastPostDate/date" mode="dateTime"/>
<xsl:text> </xsl:text>
<img alt="new" src="/static/images/new.gif">
<xsl:if test="lastPostId &lt; 10000000">
<xsl:attribute name="style">visibility:hidden</xsl:attribute>
</xsl:if>
</img>
</xsl:when>
<xsl:otherwise>
<xsl:text>&#160;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</td> </td>
</tr> </tr>
</xsl:template> </xsl:template>

Loading…
Cancel
Save