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>
<xsl:template match="lastPostInfo"> <xsl:template match="lastPostInfo">
<xsl:choose> <xsl:apply-templates select="post/postDate/date" mode="dateTime"/><br />
<xsl:when test="post and (post/id &gt; 10000000)"> <a>
<xsl:apply-templates select="post/postDate/date" mode="dateTime"/><br /> <xsl:attribute name="href">/Thread/<xsl:value-of select="post/threadId"/>/p<xsl:value-of select="post/id"/>/</xsl:attribute>
<a> <xsl:text>îò </xsl:text>
<xsl:attribute name="href">/Thread/<xsl:value-of select="post/threadId"/>/p<xsl:value-of select="post/id"/>/</xsl:attribute> <xsl:value-of select="post/poster/user/name"/>
<xsl:text>îò </xsl:text> </a>
<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: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:apply-templates select="lastPostDate/date" mode="dateTime"/>
<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>
</td> </td>
</tr> </tr>
</xsl:template> </xsl:template>

Loading…
Cancel
Save