fixed compact mode

svn path=/trunk/; revision=21864
This commit is contained in:
samtuke 2011-12-16 16:58:27 +00:00
parent daf83d3bfe
commit 8372d1135d

View File

@ -10,7 +10,6 @@
<!-- define content type templates-->
<!-- Show a single news item -->
<xsl:template name="news">
<xsl:param name="display-year" select="'no'" />
<xsl:param name="show-date" select="'yes'" />
@ -57,27 +56,6 @@
</xsl:if>
<xsl:text>: </xsl:text>
</xsl:variable>
<xsl:choose>
<xsl:when test="$compact-view = 'yes'">
<xsl:element name="div">
<xsl:attribute name="class">entry</xsl:attribute>
<xsl:if test="$show-date = 'yes'">
<span class="date">
<xsl:copy-of select="$date" />
</span>
</xsl:if>
<span><xsl:copy-of select="$title" /></span>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<!--<div class="entry">-->
<xsl:element name="div">
@ -94,14 +72,13 @@
</xsl:if>
<!-- news text -->
<div class="text">
<xsl:apply-templates select="body/node()" />
</div>
<xsl:if test="$compact-view = 'no'">
<div class="text">
<xsl:apply-templates select="body/node()" />
</div>
</xsl:if>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>