Fixed board last post display for hidden posts

main
Inga 🏳‍🌈 14 years ago
parent 1bf4766ec4
commit 740c43e515
  1. 3
      Common/dataobjects/Post.cs
  2. 5
      templates/Full/elems/BoardInfo.xslt
  3. 5
      templates/Modern/elems/BoardInfo.xslt

@ -240,7 +240,8 @@ namespace FLocal.Common.dataobjects {
case PostVisibilityEnum.HIDDEN: case PostVisibilityEnum.HIDDEN:
result = new XElement("post", result = new XElement("post",
new XElement("hidden"), new XElement("hidden"),
new XElement("id", this.id) new XElement("id", this.id),
new XElement("postDate", this.postDate.ToXml())
); );
break; break;
case PostVisibilityEnum.VISIBLE: case PostVisibilityEnum.VISIBLE:

@ -52,7 +52,7 @@
</tr> </tr>
</xsl:template> </xsl:template>
<xsl:template match="lastPostInfo"> <xsl:template match="lastPostInfo[not(post/hidden)]">
<xsl:if test="post"> <xsl:if test="post">
<xsl:apply-templates select="post/postDate/date" mode="dateTime"/><br /> <xsl:apply-templates select="post/postDate/date" mode="dateTime"/><br />
<a> <a>
@ -63,6 +63,9 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="lastPostInfo[post/hidden]">
</xsl:template>
<xsl:template match="subBoards/board"> <xsl:template match="subBoards/board">
<xsl:text> [</xsl:text> <xsl:text> [</xsl:text>
<a> <a>

@ -64,7 +64,7 @@
</div> </div>
</xsl:template> </xsl:template>
<xsl:template match="lastPostInfo"> <xsl:template match="lastPostInfo[not(post/hidden)]">
<xsl:if test="post"> <xsl:if test="post">
<p> <p>
<xsl:text>Ïîñëåäíåå ñîîáùåíèå:</xsl:text> <xsl:text>Ïîñëåäíåå ñîîáùåíèå:</xsl:text>
@ -79,6 +79,9 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="lastPostInfo[post/hidden]">
</xsl:template>
<xsl:template match="subBoards/board"> <xsl:template match="subBoards/board">
<xsl:if test="position() &gt; 1"> <xsl:if test="position() &gt; 1">
<hr/> <hr/>

Loading…
Cancel
Save