git://git.exim.org
/
exim-website.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display a warning to the user if they're viewing old versions of the
[exim-website.git]
/
templates
/
doc
/
index.xsl
diff --git
a/templates/doc/index.xsl
b/templates/doc/index.xsl
index d76fa1d12835b3f41a7d4a927fb5d8ca7d073305..8e08d4a23708a39232aa228b2b5bed6ab85de07e 100644
(file)
--- a/
templates/doc/index.xsl
+++ b/
templates/doc/index.xsl
@@
-30,13
+30,21
@@
<!-- CONTENT -->
<xsl:template match="/book">
<!-- CONTENT -->
<xsl:template match="/book">
+ <xsl:if test="current_url">
+ <p id="old_version_warning">
+ <strong>WARNING:</strong>
+ <xsl:text> This documentation is for an old version of Exim (</xsl:text>
+ <a href="{current_url}">latest</a>
+ <xsl:text>)</xsl:text>
+ </p>
+ </xsl:if>
<div id="info">
<xsl:apply-templates select="bookinfo"/>
</div>
<div id="options" class="hidden">
<img src="{$docroot}/doc/plus-12x12.png" width="12" height="12" class="expand"/>
<img src="{$docroot}/doc/minus-12x12.png" width="12" height="12" class="collapse"/>
<div id="info">
<xsl:apply-templates select="bookinfo"/>
</div>
<div id="options" class="hidden">
<img src="{$docroot}/doc/plus-12x12.png" width="12" height="12" class="expand"/>
<img src="{$docroot}/doc/minus-12x12.png" width="12" height="12" class="collapse"/>
-
<xsl:text>Expand/Collapse all Chapters</xsl:text>
+ <xsl:text>Expand/Collapse all Chapters</xsl:text>
</div>
<div id="index">
<ul id="chapters">
</div>
<div id="index">
<ul id="chapters">