[bugzilla-gnome-org-customizations] DescribeUser: Show corresponding bug report title for patches
- From: Andre Klapper <aklapper src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-customizations] DescribeUser: Show corresponding bug report title for patches
- Date: Thu, 15 Jan 2015 01:29:32 +0000 (UTC)
commit b3e71811c5b1b49fee6896604e157d1a17e89c96
Author: Andre Klapper <a9016009 gmx de>
Date: Thu Jan 15 01:19:09 2015 +0100
DescribeUser: Show corresponding bug report title for patches
Most patches have a summary like "Patch" which is not informative.
Also display the summary (short_desc) of the corresponding report.
Bug #441478
extensions/DescribeUser/lib/Util.pm | 2 +-
.../en/default/pages/describeuser.html.tmpl | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/extensions/DescribeUser/lib/Util.pm b/extensions/DescribeUser/lib/Util.pm
index d2534d0..0f6b750 100644
--- a/extensions/DescribeUser/lib/Util.pm
+++ b/extensions/DescribeUser/lib/Util.pm
@@ -146,7 +146,7 @@ sub _page_describeuser {
my $sth = $dbh->prepare("
SELECT attachments.bug_id, attachments.gnome_attachment_status as status,
attachments.attach_id, products.name as product,
- attachments.description
+ attachments.description, bugs.short_desc as bug_title
FROM attachments, bugs, products
WHERE attachments.bug_id = bugs.bug_id
AND bugs.product_id = products.id
diff --git a/extensions/DescribeUser/template/en/default/pages/describeuser.html.tmpl
b/extensions/DescribeUser/template/en/default/pages/describeuser.html.tmpl
index a0c6382..cb24ba2 100644
--- a/extensions/DescribeUser/template/en/default/pages/describeuser.html.tmpl
+++ b/extensions/DescribeUser/template/en/default/pages/describeuser.html.tmpl
@@ -369,6 +369,10 @@
[% patch.attach_id FILTER uri %]
[% "&action=diff" %]">
[% patch.description FILTER html %]</a></td>
+ <td><a href="[% "show_bug.cgi?id=" %]
+ [% patch.bug_id FILTER uri%]">
+ [% patch.bug_title FILTER html %]</a></td>
+
</tr>
[% END %]
[% " </table>\n </p>" %]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]