calendar: don't linkify event w/o <link/>

This commit is contained in:
Astro 2011-11-02 02:01:04 +01:00
parent be6530b45f
commit c1e75c7cb5
2 changed files with 13 additions and 6 deletions

View File

@ -114,11 +114,13 @@
<li>
<a>
<!-- a/@href -->
<xsl:attribute name="href">
<xsl:call-template name="make-href">
<xsl:with-param name="href" select="link"/>
</xsl:call-template>
</xsl:attribute>
<xsl:if test="string-length(link) &gt; 0">
<xsl:attribute name="href">
<xsl:call-template name="make-href">
<xsl:with-param name="href" select="link"/>
</xsl:call-template>
</xsl:attribute>
</xsl:if>
<!-- a/@title -->
<xsl:if test="string-length(location) &gt; 0">
<xsl:attribute name="title">

View File

@ -232,7 +232,12 @@
<xsl:with-param name="start" select="start"/>
<xsl:with-param name="end" select="end"/>
</xsl:call-template>:
<a href="{$href}">
<a>
<xsl:if test="string-length($href) &gt; 0">
<xsl:attribute name="href">
<xsl:value-of select="$href"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="string-length(location) &gt; 0">
<xsl:attribute name="title">
<xsl:value-of select="concat('Ort: ', location)"/>