Don't display a "Next" link when we get to the last page in the
[exim-website.git] / templates / doc / chapter.xsl
index dd5d06ac9705bc01f60ea454bb20128565251207..6fd6d8c99702c49d60c1ccc2d4c12acb7d5f3bd0 100644 (file)
@@ -41,7 +41,9 @@
 
          <!-- Navigation -->
          <a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
-         <a class="next_page"     href="{next_url}"><![CDATA[next->]]></a>
+        <xsl:if test="next_url">
+            <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
+         </xsl:if>
 
          <!-- Chapter Wrapper -->
          <div id="chapter" class="chapter{@class}">