r22697 - htdocs/trunk - Only display unstable download information if there is
Geert Janssens
gjanssens at code.gnucash.org
Fri Jan 11 12:21:32 EST 2013
Author: gjanssens
Date: 2013-01-11 12:21:32 -0500 (Fri, 11 Jan 2013)
New Revision: 22697
Trac: http://svn.gnucash.org/trac/changeset/22697
Modified:
htdocs/trunk/download.phtml
htdocs/trunk/externals/global_params.php
Log:
Only display unstable download information if there is
an active unstable release.
If there is none, $latest_unstable can be set to False in
externals/global_variables.
Modified: htdocs/trunk/download.phtml
===================================================================
--- htdocs/trunk/download.phtml 2013-01-11 17:13:52 UTC (rev 22696)
+++ htdocs/trunk/download.phtml 2013-01-11 17:21:32 UTC (rev 22697)
@@ -41,6 +41,9 @@
</ul>
<p><?php echo T_("For build instructions, please check the <span class=\"gnucash\">GnuCash</span> wiki which has <a href='http://wiki.gnucash.org/wiki/GnuCash#Installation'>guidelines for several distributions</a>.")?></p>
+<?php
+# Only show unstable download options if there really is an active unstable release
+if ($latest_unstable) { ?>
<div class="featureborder">
<h2 class="featuretitle"><?php printf (T_("Unstable/Development release (%s)"), $latest_unstable)?></h2>
</div>
@@ -52,6 +55,7 @@
<li><?php printf (T_("GnuCash %s for"), $latest_unstable)?> Mac OS X <a href="<?php echo $download_path.$latest_unstable_mac_intel;?>">Intel</a> | <a href="<?php echo $download_path.$latest_unstable_mac_ppc;?>">PPC</a> | <a href="http://wiki.gnucash.org/wiki/MacOSX/<?php echo $latest_unstable;?>/Readme">Readme</a></li>
<li><a href="<?php echo $download_path.$latest_unstable_source;?>">bzip2 compressed tarball</a> <?php printf (T_("for GnuCash %s"), $latest_unstable)?></li>
</ul>
+<?php } ?>
<div class="featureborder">
<h2 class="featuretitle"><?php echo T_("Other")?></h2>
@@ -59,7 +63,13 @@
<ul>
<li><a href="<?php echo $latest_stable_path;?>"><?php printf (T_("View all GnuCash %s downloads (stable)"), $latest_stable)?></a></li>
+
+<?php
+# Only show unstable download options if there is an active unstable release
+if ($latest_unstable) { ?>
<li><a href="<?php echo $latest_unstable_path;?>"><?php printf (T_("View all GnuCash %s downloads (unstable)"), $latest_unstable)?></a></li>
+<?php } ?>
+
<li><a href="http://sourceforge.net/projects/gnucash/files/"><?php echo T_("View all GnuCash downloads")?></a></li>
</ul>
Modified: htdocs/trunk/externals/global_params.php
===================================================================
--- htdocs/trunk/externals/global_params.php 2013-01-11 17:13:52 UTC (rev 22696)
+++ htdocs/trunk/externals/global_params.php 2013-01-11 17:21:32 UTC (rev 22697)
@@ -10,7 +10,9 @@
# $latest_stable_mac_intel = $latest_stable."-2";
$latest_stable_mac_intel = $latest_stable;
- $latest_unstable = "2.3.17";
+# $latest_unstable = "2.3.17";
+ // There's currently no unstable release being worked on, so disable it
+ $latest_unstable = False;
$latest_unstable_win = $latest_unstable;
$latest_unstable_mac_ppc = $latest_unstable;
$latest_unstable_mac_intel = $latest_unstable;
More information about the gnucash-changes
mailing list