cvs: pearweb /public_html package-info.php

From: Date: Fri, 21 Mar 2008 21:06:54 +0000
Subject: cvs: pearweb /public_html package-info.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7355@lists.php.net to get a copy of this message
dufuz Fri Mar 21 21:06:54 2008 UTC Modified files: /pearweb/public_html package-info.php Log: Request #11082 Package Summary (Bug) Request Report # Also fixed so we don't do 2 queries to get count and total, subquery ftw! # and total of bugs is now only bugs and docs, no features in it http://cvs.php.net/viewvc.cgi/pearweb/public_html/package-info.php?r1=1.142&r2=1.143&diff_format=u Index: pearweb/public_html/package-info.php diff -u pearweb/public_html/package-info.php:1.142 pearweb/public_html/package-info.php:1.143 --- pearweb/public_html/package-info.php:1.142 Sun Mar 9 22:54:29 2008 +++ pearweb/public_html/package-info.php Fri Mar 21 21:06:54 2008 @@ -16,7 +16,7 @@ | Authors: Martin Jansen <mj@php.net> | | Tomas V.V.Cox <cox@idecnet.com> | +----------------------------------------------------------------------+ - $Id: package-info.php,v 1.142 2008/03/09 22:54:29 dufuz Exp $ + $Id: package-info.php,v 1.143 2008/03/21 21:06:54 dufuz Exp $ */ @@ -325,10 +325,16 @@ echo '<td width="50%" class="textcell">'; $bugs = new PEAR_Bugs; $buginfo = $bugs->packageBugStats($pkg['name']); + $frinfo = $bugs->packageFeaturestats($pkg['name']); if (!$buginfo['count']) { echo 'No open bugs'; - } else { + } + + if ($buginfo['count'] || $frinfo['counf']) { echo '<ul>'; + } + + if ($buginfo['count']) { $bstats = $bugs->bugRank(); foreach ($bstats as $i => $pi) { if ($pi['name'] == $pkg['name']) { @@ -343,9 +349,19 @@ $buginfo['count'] . ' (' . $buginfo['total'] . ' total bugs)</strong></li>'; echo '<li>Average age of open bugs: <strong>' . round($buginfo['average']) . ' days</strong></li>'; echo '<li>Oldest open bug: <strong>' . $buginfo['oldest'] . ' days</strong></li>'; + } + + 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'] . ' feature requests)</strong></li>'; + } + + if ($buginfo['count'] || $frinfo['counf']) { echo '</ul>'; } - echo '<br /><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>'; echo '</tr>'; echo '<tr>';

« previous php.pear.core (#7355) next »