From 2ea957b9a17d6b938e44dff4bef0f9d077036b9f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 30 May 2010 10:12:40 +0200 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 e60161c..ff79602 100644 --- a/smarty/templates/rpmphp/zoom.tpl +++ b/smarty/templates/rpmphp/zoom.tpl @@ -20,7 +20,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 7724dcd..995c7fd 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