Commit 51fa7cea authored by Simon Green's avatar Simon Green

Bug 1060233 - Aliases are not displayed correctly in some places

r=dkl, a=sgreen
parent ec5caa57
......@@ -32,8 +32,8 @@
[% IF user.can_see_bug(bug) %]
[% link_title = link_title _ ' - ' _ bug.short_desc %]
[% IF use_alias && bug.alias %]
[% link_text = bug.alias %]
[% IF use_alias && bug.alias.size %]
[% link_text = bug.alias.join(', ') %]
[% END %]
[% END %]
......
......@@ -48,9 +48,10 @@
<h1>
[% terms.Bug %]
<a href="show_bug.cgi?id=[% bug.bug_id FILTER html %]">[% bug.bug_id FILTER html %]</a>
[% IF bug.alias AND NOT bug.error %]
(<a href="show_bug.cgi?id=[% bug.alias FILTER uri %]">
[% bug.alias FILTER html %]</a>)
[% IF bug.alias AND NOT bug.error %] (
[%- FOREACH alias IN bug.alias %]<a href="show_bug.cgi?id=[% alias FILTER uri %]">
[% alias FILTER html %]</a>[% UNLESS loop.last %], [% END %]
[%- END %])
[% END %]
</h1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment