cvs: pearweb /public_html package-info.php

From: Date: Tue, 14 Oct 2003 17:30:54 +0000
Subject: cvs: pearweb /public_html package-info.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13601@lists.php.net to get a copy of this message
mj Tue Oct 14 13:30:54 2003 EDT Modified files: /pearweb/public_html package-info.php Log: * Fixing #98 Index: pearweb/public_html/package-info.php diff -u pearweb/public_html/package-info.php:1.51 pearweb/public_html/package-info.php:1.52 --- pearweb/public_html/package-info.php:1.51 Fri Oct 3 06:03:15 2003 +++ pearweb/public_html/package-info.php Tue Oct 14 13:30:54 2003 @@ -16,7 +16,7 @@ | Authors: Martin Jansen <mj@php.net> | | Tomas V.V.Cox <cox@idecnet.com> | +----------------------------------------------------------------------+ - $Id: package-info.php,v 1.51 2003/10/03 10:03:15 mj Exp $ + $Id: package-info.php,v 1.52 2003/10/14 17:30:54 mj Exp $ */ require_once "Damblan/URL.php"; @@ -174,7 +174,12 @@ <table border="0" cellspacing="3" cellpadding="3" height="48" width="90%" align="center"> <tr> <?php -$get_link = make_link("/get/$name", 'Download Latest'); +if (count($pkg['releases']) > 0) { + $get_link = "[ " . make_link("/get/$name", 'Download Latest') . " ]"; +} else { + $get_link = "&nbsp;"; +} + if ($version) { $changelog_link = make_link("/package-changelog.php?package=" . $pkg['name'] . '&amp;release=' . $version, @@ -186,7 +191,7 @@ $stats_link = make_link("/package-stats.php?pid=" . $pacid . "&amp;rid=&amp;cid=" . $pkg['categoryid'], "View package statistics"); ?> - <td align="center">[ <?php print $get_link; ?> ]</td> + <td align="center"><?php print $get_link; ?></td> <td align="center">[ <?php print $changelog_link; ?> ]</td> <td align="center">[ <?php print $stats_link; ?> ]</td> </tr> @@ -218,7 +223,7 @@ $bb = new BorderBox("Available Releases", "90%", "", 5, true); if (count($pkg['releases']) == 0) { - print "<i>No releases for this package.</i>"; + $bb->fullRow("<i>No releases for this package.</i>"); } else { $bb->headRow("Version", "State", "Release Date", "Downloads", ""); @@ -271,7 +276,7 @@ } if ($sth->numRows() == 0) { - print "<i>No releases yet.</i>"; + $bb->fullRow("<i>No releases yet.</i>"); } else { $rel_trans = array( 'lt' => 'older than %s',

« previous php.pear.cvs (#13601) next »