From bdc6b52b47cc8581c08a4ba6f32d3a8ba26ff295 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 30 May 2010 15:33:58 +0800 Subject: fix case issue (p.e. with php-pecl-apc) --- zoom.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zoom.php b/zoom.php index d115fa2..690471e 100644 --- a/zoom.php +++ b/zoom.php @@ -113,6 +113,13 @@ if ( !isset($name) || !$name ) { $resown=$db->query($sql); $owner = ($resown ? $resown->fetchObject() : false); + if (isset($owner->name)) { + // Use exact name (with case) from acl (else pkgdb could fail) + $name = $owner->name; + $smarty->assign('name', $name); + $smarty->assign('page_title', 'Package: ' . $name); + } + if (!$rpm) { echo "

$name not found

\n"; } else { -- cgit From 2d7743abe7aee9e71c6dd6ed722353ef948d3902 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 30 May 2010 16:12:40 +0800 Subject: Add Bugzilla link, fixes #44 --- smarty/templates/rpmphp/zoom.tpl | 4 +++- zoom.php | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl index 6031a69..704c6b7 100644 --- a/smarty/templates/rpmphp/zoom.tpl +++ b/smarty/templates/rpmphp/zoom.tpl @@ -41,7 +41,9 @@ {$k}: - {if $k eq 'URL' or $k eq 'ViewVC'} + {if $k eq 'Bugzilla'} + Active bugs + {elseif $k eq 'URL' or $k eq 'ViewVC'} {$v} {else} {$v} diff --git a/zoom.php b/zoom.php index 690471e..56dea38 100644 --- a/zoom.php +++ b/zoom.php @@ -159,6 +159,11 @@ if ( !isset($name) || !$name ) { } else { $summary['Owner'] = $owner->owner; } + + // Only when owner (so we have the exact name) + $summary['Bugzilla'] = 'https://bugzilla.redhat.com/buglist.cgi'. + '?bug_status=NEW&bug_status=ASSIGNED&bug_status=ON_QA' . + '&component=' . $name; } $summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' . $name . '/'; -- cgit From 1d6449169f711c536826006e3f45c3026643ec4f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 30 May 2010 17:17:01 +0800 Subject: fix description display --- pkgdb-ajax.php | 1 + scripts/rpmphp.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgdb-ajax.php b/pkgdb-ajax.php index 5cff16c..e2c6583 100644 --- a/pkgdb-ajax.php +++ b/pkgdb-ajax.php @@ -41,6 +41,7 @@ if ( !isset($name) || !$name ) { ); } $fedpkg[$k]['people'] = $new_people; + $fedpkg[$k]['package']['description'] = nl2br($fedpkg[$k]['package']['description']); } } } diff --git a/scripts/rpmphp.js b/scripts/rpmphp.js index 7898986..7dfe0b5 100644 --- a/scripts/rpmphp.js +++ b/scripts/rpmphp.js @@ -7,7 +7,7 @@ function initZoomJS(name) if ( data.error ) { alert(data.error); } else { - $('#' + name + '_desc').empty().text(data.devel.package.description); + $('#' + name + '_desc').empty().html(data.devel.package.description); $.each( data, function(k, v){ -- cgit