Update of /cvsroot/fink/web/pdb
In directory sc8-pr-cvs17:/tmp/cvs-serv13244/pdb
Modified Files:
Tag: redesign_pdb
browse.php
Log Message:
Some nitpicking if list contains only 1 or 0 packages.
Index: browse.php
===================================================================
RCS file: /cvsroot/fink/web/pdb/browse.php,v
retrieving revision 1.1.2.21
retrieving revision 1.1.2.22
diff -u -d -r1.1.2.21 -r1.1.2.22
--- browse.php 26 Aug 2007 14:12:10 -0000 1.1.2.21
+++ browse.php 26 Aug 2007 14:20:10 -0000 1.1.2.22
@@ -381,9 +381,11 @@
?>
<p>
Found <?=$count?>
-packages<?=($maintainer=='None' ? ' without maintainer' :
'')?><?=($tree=='testing' ? ' that need testing' : '')?>:
+package<?=($count==1 ? '' : 's')?><?=($maintainer=='None' ? ' without
maintainer' : '')?><?=($tree=='testing' ? ' that need testing' : '')?>:
</p>
-
+<?
+ if ($count > 0) {
+?>
<table class="pdb" cellspacing="2" border="0">
<?
if ($tree == 'testing') {
@@ -412,6 +414,7 @@
}
?>
</table>
+<? } // no packages to list ?>
<p>Query took <? printf("%.2f", $time_sql_end - $time_sql_start); ?> sec</p>
<?
} // no sql error
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits