summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-02-23 07:06:05 +0100
committerDavid Lawrence <dlawrence@mozilla.com>2011-02-23 07:06:05 +0100
commit90062dd4e7d12189ee75bce626aaf4c6d9e3723d (patch)
tree4ec9e91be889eea91469e04701ff7389e091b755 /template
parent60712d5d6f5db2a468bea0447744c06d5e8a487c (diff)
downloadbugzilla-90062dd4e7d12189ee75bce626aaf4c6d9e3723d.tar.gz
bugzilla-90062dd4e7d12189ee75bce626aaf4c6d9e3723d.tar.xz
Bug 609968 - Allow local See Also links to show status/summary when mouseover
r=timello,a=mkanat
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/field.html.tmpl17
1 files changed, 13 insertions, 4 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index 900a78271..323b4b6be 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -165,8 +165,7 @@
[% '<ul class="bug_urls">' IF value.size %]
[% FOREACH bug_url = value %]
<li>
- <a href="[% bug_url.name FILTER html %]">
- [% bug_url.name FILTER html %]</a>
+ [% PROCESS bug_url_link bug_url = bug_url %]
<label><input type="checkbox" value="[% bug_url.name FILTER html %]"
name="remove_[% field.name FILTER html %]">
Remove</label>
@@ -215,8 +214,9 @@
[% ELSIF field.type == constants.FIELD_TYPE_BUG_URLS %]
[% '<ul class="bug_urls">' IF value.size %]
[% FOREACH bug_url = value %]
- <li><a href="[% bug_url.name FILTER html %]">
- [% bug_url.name FILTER html %]</a></li>
+ <li>
+ [% PROCESS bug_url_link bug_url = bug_url %]
+ </li>
[% END %]
[% '</ul>' IF value.size %]
[% ELSE %]
@@ -237,3 +237,12 @@
[% ELSE %]
[% extra_field_item = '' %]
[% END %]
+
+[% BLOCK bug_url_link %]
+ [% IF bug_url.isa('Bugzilla::BugUrl::Bugzilla::Local') %]
+ [% bug_url.target_bug_id FILTER bug_link(bug_url.target_bug_id, use_alias => 1) FILTER none %]
+ [% ELSE %]
+ <a href="[% bug_url.name FILTER html %]">
+ [% bug_url.name FILTER html %]</a>
+ [% END %]
+[% END %]