Fixed board last post display for hidden posts

main
Inga 🏳‍🌈 13 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:
result = new XElement("post",
new XElement("hidden"),
new XElement("id", this.id)
new XElement("id", this.id),
new XElement("postDate", this.postDate.ToXml())
);
break;
case PostVisibilityEnum.VISIBLE:

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

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

Loading…
Cancel
Save