gnucash-htdocs master: Better way to display the old_stable docs download.

Cristian Marchi cmarchi at code.gnucash.org
Tue Dec 31 05:44:13 EST 2013


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/f1c8f063 (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/eda982cb (commit)



commit f1c8f0632dc3588e56f535beef77613d0d62bfed
Author: Cristian Marchi <cri79 at libero.it>
Date:   Tue Dec 31 11:44:03 2013 +0100

    Better way to display the old_stable docs download.

diff --git a/docs.phtml b/docs.phtml
index 89e92c2..2ed570e 100644
--- a/docs.phtml
+++ b/docs.phtml
@@ -139,7 +139,9 @@ include("externals/menu.phtml");
 <p class="justify"><?php echo T_("This is the latest stable release of the <span class=\"gnucash\">GnuCash</span> documentation. <em>Stable</em> means that this documentation is not necessarily the most up to date but it works without any problem.");?></p>
 </div>
 
-<!--Old stable documentation. Comment out if there is no old stable release-->
+<?php
+# Only show old stable docs download options if there really is an active unstable release
+if ($old_stable) { ?>
 <div class="featurecontainer">
 <div class="featureborder">
 <h2 class="featuretitle"><?php printf (T_("GnuCash v%s"), $major_old_stable)?> <?php echo T_("(old stable release)");?></h2>
@@ -248,7 +250,7 @@ include("externals/menu.phtml");
 
 <p class="justify"><?php printf (T_("This is the old stable release of the <span class=\"gnucash\">GnuCash</span> documentation, corresponding to the %s release of <span class=\"gnucash\">GnuCash</span> itself."), $old_stable)?></p>
 </div>
-<!--end of old_stable-->
+<?php } ?>
 
 <div class="featurecontainer">
 <div class="featureborder">



Summary of changes:
 docs.phtml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list