aboutsummaryrefslogtreecommitdiff
path: root/share/xml/freebsd-xhtml-common.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'share/xml/freebsd-xhtml-common.xsl')
-rw-r--r--share/xml/freebsd-xhtml-common.xsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/share/xml/freebsd-xhtml-common.xsl b/share/xml/freebsd-xhtml-common.xsl
index 3f90b34249..abc66af2d4 100644
--- a/share/xml/freebsd-xhtml-common.xsl
+++ b/share/xml/freebsd-xhtml-common.xsl
@@ -212,6 +212,24 @@
</a>
</xsl:template>
+ <xsl:template name="gitref.genlink">
+ <xsl:param name="rev" select="."/>
+ <xsl:param name="repo" select="'src'"/>
+
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="cgit.link">
+ <xsl:with-param name="repo" select="$repo"/>
+ <xsl:with-param name="rev" select="$rev"/>
+ </xsl:call-template>
+ </xsl:attribute>
+
+ <span class="gitref">
+ <xsl:value-of select="$rev"/>
+ </span>
+ </a>
+ </xsl:template>
+
<xsl:template name="generate.citerefentry.link">
<xsl:text>https://www.FreeBSD.org/cgi/man.cgi?query=</xsl:text>
<xsl:value-of select="db:refentrytitle"/>