mirror of https://github.com/moparisthebest/xeps
Linkify revision history to attic
Comparing versions is a thing you may want to do when dealing with a more or less living standard. Locating these versions in the attic is often tedious since there are so many XEPs and revisions. Linking them from the XEP revision history makes this easier, at least where the relevant revision does exist in the attic, not all do, and some are called jep rather than xep for historical reasons.
This commit is contained in:
parent
7c46fc60c0
commit
923dfde2a8
12
xep.xsl
12
xep.xsl
|
@ -704,7 +704,17 @@ content: "XEP-<xsl:value-of select='/xep/header/number'/>";
|
||||||
<li>
|
<li>
|
||||||
<xsl:variable name='anchor'>revision-history-v<xsl:value-of select='version'/></xsl:variable>
|
<xsl:variable name='anchor'>revision-history-v<xsl:value-of select='version'/></xsl:variable>
|
||||||
<xsl:attribute name='id'><xsl:value-of select='$anchor'/></xsl:attribute>
|
<xsl:attribute name='id'><xsl:value-of select='$anchor'/></xsl:attribute>
|
||||||
<div class='revision-head'>Version <xsl:value-of select='version'/><xsl:text> </xsl:text>(<xsl:value-of select='date'/>)<xsl:call-template name='anchor-link'><xsl:with-param name='anchor' select='$anchor'/></xsl:call-template></div>
|
<div class='revision-head'>Version <a>
|
||||||
|
<xsl:attribute name='href'>
|
||||||
|
<xsl:text>https://xmpp.org/extensions/attic/xep-</xsl:text>
|
||||||
|
<xsl:value-of select='/xep/header/number'/>
|
||||||
|
<xsl:text>-</xsl:text>
|
||||||
|
<xsl:value-of select='version'/>
|
||||||
|
<xsl:text>.html</xsl:text>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:value-of select='version'/>
|
||||||
|
</a>
|
||||||
|
<xsl:text> </xsl:text>(<xsl:value-of select='date'/>)<xsl:call-template name='anchor-link'><xsl:with-param name='anchor' select='$anchor'/></xsl:call-template></div>
|
||||||
<xsl:apply-templates select='remark'/>
|
<xsl:apply-templates select='remark'/>
|
||||||
<div class='revision-author'><xsl:value-of select='initials'/></div>
|
<div class='revision-author'><xsl:value-of select='initials'/></div>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue