r22696 - htdocs/branches/beta - Cleanup code to hide unstable release downloads when there's no active unstable release

Geert Janssens gjanssens at code.gnucash.org
Fri Jan 11 12:13:52 EST 2013


Author: gjanssens
Date: 2013-01-11 12:13:52 -0500 (Fri, 11 Jan 2013)
New Revision: 22696
Trac: http://svn.gnucash.org/trac/changeset/22696

Removed:
   htdocs/branches/beta/unstable-download.phtml
Modified:
   htdocs/branches/beta/download.phtml
Log:
Cleanup code to hide unstable release downloads when there's no active unstable release

Modified: htdocs/branches/beta/download.phtml
===================================================================
--- htdocs/branches/beta/download.phtml	2013-01-11 17:06:41 UTC (rev 22695)
+++ htdocs/branches/beta/download.phtml	2013-01-11 17:13:52 UTC (rev 22696)
@@ -41,17 +41,32 @@
  </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 if ($latest_unstable)
-      include "unstable-download.phtml";
-?>
+<?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>
+<p class="justify"><?php echo T_("Unstable (development) releases are for testing purposes only. They contain the newest features and improvements, but may also contain serious bugs still. Don't install these releases for everyday use.")?></p>
+<p class="justify"><?php printf (T_("The latest unstable release of <span class=\"gnucash\">GnuCash</span> is %s.  Choose the download for your operating system below."), $latest_unstable)?></p>
+
+<ul>
+  <li><?php printf (T_("GnuCash %s for"), $latest_unstable)?> <a href="<?php echo $download_path.$latest_unstable_win;?>">Microsoft Windows XP/Vista/7</a></li>
+  <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>
 </div>
 
 <ul>
  <li><a href="<?php echo $latest_stable_path;?>"><?php printf (T_("View all GnuCash %s downloads (stable)"), $latest_stable)?></a></li>
 
-<?php if ($latest_unstable) { ?>
+<?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 } ?>
 

Deleted: htdocs/branches/beta/unstable-download.phtml
===================================================================
--- htdocs/branches/beta/unstable-download.phtml	2013-01-11 17:06:41 UTC (rev 22695)
+++ htdocs/branches/beta/unstable-download.phtml	2013-01-11 17:13:52 UTC (rev 22696)
@@ -1,12 +0,0 @@
-<div class="featureborder">
-<h2 class="featuretitle"><?php printf (T_("Unstable/Development release (%s)"), $latest_unstable)?></h2>
-</div>
-<p class="justify"><?php echo T_("Unstable (development) releases are for testing purposes only. They contain the newest features and improvements, but may also contain serious bugs still. Don't install these releases for everyday use.")?></p>
-<p class="justify"><?php printf (T_("The latest unstable release of <span class=\"gnucash\">GnuCash</span> is %s.  Choose the download for your operating system below."), $latest_unstable)?></p>
-
-<ul>
-  <li><?php printf (T_("GnuCash %s for"), $latest_unstable)?> <a href="<?php echo $download_path.$latest_unstable_win;?>">Microsoft Windows XP/Vista/7</a></li>
-  <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>
-



More information about the gnucash-changes mailing list