diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-05-30 16:12:40 +0800 |
---|---|---|
committer | trasher <trasher@x-tnd.be> | 2010-05-31 01:48:48 +0800 |
commit | 2d7743abe7aee9e71c6dd6ed722353ef948d3902 (patch) | |
tree | 2f0cabafd2eed3ac6b851720c25673069f0ca439 | |
parent | bdc6b52b47cc8581c08a4ba6f32d3a8ba26ff295 (diff) |
Add Bugzilla link, fixes #44
-rw-r--r-- | smarty/templates/rpmphp/zoom.tpl | 4 | ||||
-rw-r--r-- | zoom.php | 5 |
2 files changed, 8 insertions, 1 deletions
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 @@ <tr> <th>{$k}:</th> <td{if $k eq 'Description'} id="{$name}_desc"{/if}> - {if $k eq 'URL' or $k eq 'ViewVC'} + {if $k eq 'Bugzilla'} + <a href="{$v}">Active bugs</a> + {elseif $k eq 'URL' or $k eq 'ViewVC'} <a href="{$v}">{$v}</a> {else} {$v} @@ -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 . '/'; |