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