Legacy LastPost info display restored:

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

@ -53,25 +53,12 @@
</xsl:template>
<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 />
<a>
<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:value-of select="post/poster/user/name"/>
</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:apply-templates select="post/postDate/date" mode="dateTime"/><br />
<a>
<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:value-of select="post/poster/user/name"/>
</a>
</xsl:template>
<xsl:template match="subBoards/board">

@ -70,20 +70,7 @@
</xsl:if>
</td>
<td nowrap="nowrap" align="center">
<xsl:choose>
<xsl:when test="lastPostId &gt; 10000000">
<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>
<xsl:apply-templates select="lastPostDate/date" mode="dateTime"/>
</td>
</tr>
</xsl:template>

Loading…
Cancel
Save