Post title display improved

main
Inga 🏳‍🌈 14 years ago
parent ed03930d9b
commit 70d1ca4368
  1. 32
      templates/Modern/elems/PostInfo.xslt

@ -83,23 +83,21 @@
</img>
</a>
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="parentPost/post">
<font class="small separate">
<xsl:text>[</xsl:text>
<a>
<xsl:attribute name="title"><xsl:value-of select="parentPost/post/bodyShort"/></xsl:attribute>
<xsl:attribute name="href">/Thread/<xsl:value-of select="threadId"/>/p<xsl:value-of select="parentPost/post/id"/>/</xsl:attribute>
<xsl:text>re: </xsl:text>
<xsl:value-of select="parentPost/post/poster/user/name"/>
</a>
<xsl:text>]</xsl:text>
</font>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="title"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="parentPost/post">
<font class="small separate">
<xsl:text>[</xsl:text>
<a>
<xsl:attribute name="title"><xsl:value-of select="parentPost/post/bodyShort"/></xsl:attribute>
<xsl:attribute name="href">/Thread/<xsl:value-of select="threadId"/>/p<xsl:value-of select="parentPost/post/id"/>/</xsl:attribute>
<xsl:text>re: </xsl:text>
<xsl:value-of select="parentPost/post/poster/user/name"/>
</a>
<xsl:text>]</xsl:text>
</font>
</xsl:if>
<xsl:if test="not(parentPost/post/title = title) and not(concat('Re: ', parentPost/post/title) = title)">
<xsl:value-of select="title"/>
</xsl:if>
<div class="postbody">
<xsl:value-of select="body" disable-output-escaping="yes" />
</div>

Loading…
Cancel
Save