1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-12 09:45:46 +01:00

Make the features list somewhat more useful.

This commit is contained in:
Kris Maglione
2011-02-21 23:32:22 -05:00
parent f6b66304f9
commit 90ee266d1b
3 changed files with 25 additions and 20 deletions

View File

@@ -296,11 +296,15 @@
<xsl:param name="contents" select="text()"/>
<xsl:variable name="tag" select="$contents"/>
<a style="color: inherit;">
<xsl:if test="@link != 'false'">
<xsl:attribute name="href">dactyl://help-tag/<xsl:value-of select="$tag"/></xsl:attribute>
</xsl:if>
<xsl:if test="contains(ancestor::*/@document-tags, concat(' ', $tag, ' '))">
<xsl:attribute name="href">#<xsl:value-of select="$tag"/></xsl:attribute>
<xsl:if test="1">
<xsl:choose>
<xsl:when test="contains(ancestor::*/@document-tags, concat(' ', $tag, ' '))">
<xsl:attribute name="href">#<xsl:value-of select="$tag"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href">dactyl://help-tag/<xsl:value-of select="$tag"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:value-of select="$contents"/>
</a>