summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-05-30 10:12:40 +0200
committerRemi Collet <fedora@famillecollet.com>2010-05-30 10:12:40 +0200
commit2ea957b9a17d6b938e44dff4bef0f9d077036b9f (patch)
treecf4020e47cc27d1c20d064194380e4e1dd3583d3
parentd685c2ec852718f45941a47f1c2d810ad1484015 (diff)
Add Bugzilla link, fixes #44
-rw-r--r--smarty/templates/rpmphp/zoom.tpl4
-rw-r--r--zoom.php5
2 files changed, 8 insertions, 1 deletions
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 @@
<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}
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&amp;bug_status=ASSIGNED&amp;bug_status=ON_QA' .
+ '&amp;component=' . $name;
}
$summary['ViewVC'] = 'http://cvs.fedoraproject.org/viewvc/rpms/' .
$name . '/';