summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-11-30 16:24:56 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-11-30 16:24:56 +0100
commit5321b1f39d9f2bfb81ca7851e9858249cbf8977a (patch)
tree5377b9ff2651d7d27cf97c7241206b4214b159d6 /template
parent2667d3631cc09c4d5d3593312bfeb86b38a4c65a (diff)
downloadbugzilla-5321b1f39d9f2bfb81ca7851e9858249cbf8977a.tar.gz
bugzilla-5321b1f39d9f2bfb81ca7851e9858249cbf8977a.tar.xz
Bug 816266 - Bug alias should be present in bug's <title>
r=glob, a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/show-header.html.tmpl16
1 files changed, 12 insertions, 4 deletions
diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl
index 93ddc94f1..bb20b721b 100644
--- a/template/en/default/bug/show-header.html.tmpl
+++ b/template/en/default/bug/show-header.html.tmpl
@@ -16,18 +16,26 @@
[% filtered_desc = bug.short_desc FILTER html %]
[% subheader = filtered_desc %]
[% filtered_timestamp = bug.delta_ts FILTER time %]
-[% title = "$terms.Bug $bug.bug_id &ndash; $filtered_desc" %]
+[% title = "$terms.Bug $bug.bug_id &ndash; " %]
+[% IF bug.alias != '' %]
+ [% title = title _ "($bug.alias) " %]
+[% END %]
+[% title = title _ filtered_desc %]
[% header = "$terms.Bug&nbsp;$bug.bug_id" %]
[% header_addl_info = "Last modified: $filtered_timestamp" %]
[% yui = ['autocomplete', 'calendar'] %]
[% javascript_urls = [ "js/util.js", "js/field.js" ] %]
[% IF bug.defined %]
- [% unfiltered_title = "$terms.Bug $bug.bug_id – $bug.short_desc" %]
+ [% unfiltered_title = "$terms.Bug $bug.bug_id – " %]
+ [% IF bug.alias != '' %]
+ [% unfiltered_title = unfiltered_title _ "($bug.alias) " %]
+ [% END %]
+ [% unfiltered_title = unfiltered_title _ bug.short_desc %]
[% javascript = BLOCK %]
if (history && history.replaceState) {
if(!document.location.href.match(/show_bug\.cgi/)) {
- history.replaceState( null,
- "[% unfiltered_title FILTER js %]",
+ history.replaceState( null,
+ "[% unfiltered_title FILTER js %]",
"show_bug.cgi?id=[% bug.bug_id FILTER js %]" );
document.title = "[% unfiltered_title FILTER js %]";
}