cvs: pearweb /public_html package-info.php
[email protected] ("Helgi ?ormar ?orbj?rnsson") Mon, 05 May 2008 01:15:18 -0000
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <cvsdufuz1209950118@cvsserver> |
dufuz Mon May 5 01:15:18 2008 UTC
Modified files:
/pearweb/public_html package-info.php
Log:
Hide all bug info if bug_link is set (i.e. external bug system)
http://cvs.php.net/viewvc.cgi/pearweb/public_html/package-info.php?r1=1.149&r2=1.150&diff_format=u
Index: pearweb/public_html/package-info.php
diff -u pearweb/public_html/package-info.php:1.149 pearweb/public_html/package-info.php:1.150
--- pearweb/public_html/package-info.php:1.149 Sun Apr 27 02:44:35 2008
+++ pearweb/public_html/package-info.php Mon May 5 01:15:18 2008
@@ -16,7 +16,7 @@
| Authors: Martin Jansen <[email protected]> |
| Tomas V.V.Cox <[email protected]> |
+----------------------------------------------------------------------+
- $Id: package-info.php,v 1.149 2008/04/27 02:44:35 dufuz Exp $
+ $Id: package-info.php,v 1.150 2008/05/05 01:15:18 dufuz Exp $
*/
@@ -202,14 +202,14 @@
// {{{ Supeseded checks
$dec_messages = array(
- 'abandoned' => 'This package is not maintained anymore and has been superseded.',
- 'superseded' => 'This package has been superseded, but is still maintained for bugs and security fixes.',
+ 'abandoned' => 'This package is not maintained anymore and has been superseded.',
+ 'superseded' => 'This package has been superseded, but is still maintained for bugs and security fixes.',
'unmaintained' => 'This package is not maintained, if you would like to take over please go to <a href="http://pear.php.net/manual/en/newmaint.takingover.php">this page</a>.'
);
$dec_table = array(
- 'abandoned' => array('superseded' => 'Y', 'unmaintained' => 'Y'),
- 'superseded' => array('superseded' => 'Y', 'unmaintained' => 'N'),
+ 'abandoned' => array('superseded' => 'Y', 'unmaintained' => 'Y'),
+ 'superseded' => array('superseded' => 'Y', 'unmaintained' => 'N'),
'unmaintained' => array('superseded' => 'N', 'unmaintained' => 'Y'),
);
@@ -257,12 +257,16 @@
echo '<tr>' . "\n";
echo '<th>» Current Release</th>' . "\n";
- echo '<th>» Bug Summary</th>' . "\n";
+ if (empty($pkg['bug_link'])) {
+ echo '<th>» Bug Summary</th>' . "\n";
+ } else {
+ echo "<th> </th>\n";
+ }
echo '</tr>' . "\n";
echo '<tr>' . "\n";
echo '<td>' . "\n";
if (isset($versions[0])) {
- echo '<a href="http://download.pear.php.net/package/' . htmlspecialchars($name) . '-' . $versions[0] . '.tgz">' . $versions[0] . '</a>';
+ echo '<a href="http://download.' . PEAR_CHANNELNAME . '/package/' . htmlspecialchars($name) . '-' . $versions[0] . '.tgz">' . $versions[0] . '</a>';
echo ' (' . $pkg['releases'][$versions[0]]['state'] . ')';
echo ' was released on ' . format_date(strtotime($pkg['releases'][$versions[0]]['releasedate']), 'Y-m-d');
echo ' (<a class="download-page" href="/package/' . htmlspecialchars($name) . '/download/">Changelog</a>)';
@@ -271,7 +275,7 @@
foreach ($pkg['releases'] as $rel_ver => $rel_arr) {
if ($rel_arr['state'] == 'stable') {
echo "<br />\n";
- echo '<a href="http://download.pear.php.net/package/' . htmlspecialchars($name) . '-';
+ echo '<a href="http://download.' . PEAR_CHANNELNAME . '/package/' . htmlspecialchars($name) . '-';
echo $rel_ver . '.tgz">' . $rel_ver . '</a>';
echo ' (stable)';
echo ' was released on ';
@@ -285,7 +289,7 @@
} else {
echo 'No releases have been made yet.';
}
- if (Roadmap_Info::roadmapExists($name)) {
+ if (empty($pkg['bug_link']) && Roadmap_Info::roadmapExists($name)) {
echo '<br /><a href="/bugs/roadmap.php?package=' . urlencode($name) .
'">Development Roadmap</a>';
$nextrelease = Roadmap_Info::nextRelease($name);
@@ -303,45 +307,47 @@
}
echo '</td>' . "\n";
echo '<td>' . "\n";
- $bugs = new PEAR_Bugs;
- $buginfo = $bugs->packageBugStats($pkg['name']);
- $frinfo = $bugs->packageFeaturestats($pkg['name']);
- if (!$buginfo['count']) {
- echo 'No open bugs';
- }
-
- if ($buginfo['count'] || $frinfo['count']) {
- echo '<ul>';
- }
-
- if ($buginfo['count']) {
- $bstats = $bugs->bugRank();
- foreach ($bstats as $i => $pi) {
- if ($pi['name'] == $pkg['name']) {
- echo '<li>Package Maintenance Rank: <strong>' . ++$i . '</strong> of ' .
- count ($bstats) .
- ' packages with open bugs</li>';
- break;
+ if (empty($pkg['bug_link'])) {
+ $bugs = new PEAR_Bugs;
+ $buginfo = $bugs->packageBugStats($pkg['name']);
+ $frinfo = $bugs->packageFeaturestats($pkg['name']);
+ if (!$buginfo['count']) {
+ echo 'No open bugs';
+ }
+
+ if ($buginfo['count'] || $frinfo['count']) {
+ echo '<ul>';
+ }
+
+ if ($buginfo['count']) {
+ $bstats = $bugs->bugRank();
+ foreach ($bstats as $i => $pi) {
+ if ($pi['name'] == $pkg['name']) {
+ echo '<li>Package Maintenance Rank: <strong>' . ++$i . '</strong> of ' .
+ count ($bstats) .
+ ' packages with open bugs</li>';
+ break;
+ }
}
+ echo '<li>Number of <a href="/bugs/search.php?cmd=display&package_name[]=' .
+ $pkg['name'] . '&status=OpenFeedback&bug_type=Bugs">open bugs</a>: <strong>' .
+ $buginfo['count'] . ' (' . $buginfo['total'] . ' total bugs)</strong></li>' . "\n";
+ echo '<li>Average age of open bugs: <strong>' . round($buginfo['average']) . ' days</strong></li>' . "\n";
+ echo '<li>Oldest open bug: <strong>' . $buginfo['oldest'] . ' days</strong></li>' . "\n";
}
- echo '<li>Number of <a href="/bugs/search.php?cmd=display&package_name[]=' .
- $pkg['name'] . '&status=OpenFeedback&bug_type=Bugs">open bugs</a>: <strong>' .
- $buginfo['count'] . ' (' . $buginfo['total'] . ' total bugs)</strong></li>' . "\n";
- echo '<li>Average age of open bugs: <strong>' . round($buginfo['average']) . ' days</strong></li>' . "\n";
- echo '<li>Oldest open bug: <strong>' . $buginfo['oldest'] . ' days</strong></li>' . "\n";
- }
- if ($frinfo['count']) {
- echo '<li>Number of open <a href="/bugs/search.php?cmd=display&package_name[]=' .
- $pkg['name'] . '&bug_type=Feature%2FChange+Request">feature requests</a>: <strong>' .
- $frinfo['count'] . ' (' . $frinfo['total'] . ' total feature requests)</strong></li>' . "\n";
- }
+ if ($frinfo['count']) {
+ echo '<li>Number of open <a href="/bugs/search.php?cmd=display&package_name[]=' .
+ $pkg['name'] . '&bug_type=Feature%2FChange+Request">feature requests</a>: <strong>' .
+ $frinfo['count'] . ' (' . $frinfo['total'] . ' total feature requests)</strong></li>' . "\n";
+ }
- if ($buginfo['count'] || $frinfo['count']) {
- echo '</ul>';
- }
+ if ($buginfo['count'] || $frinfo['count']) {
+ echo '</ul>';
+ }
- echo '<br />' . make_link('/bugs/report.php?package=' . $name, 'Report a new bug to ' . $name);
+ echo '<br />' . make_link('/bugs/report.php?package=' . $name, 'Report a new bug to ' . $name);
+ }
echo '</td>' . "\n";
echo '</tr>' . "\n";
echo '<tr>' . "\n";