summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/template
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-11-30 09:15:50 +0100
committerByron Jones <glob@mozilla.com>2015-11-30 09:16:02 +0100
commit0eff9a881c046ad7d80fd9c6cd88a2017e461acb (patch)
treee0589c5bfa5f1bf7dbd18f110a0adaeded5ed8f0 /extensions/BugModal/template
parentc36506a266b3316d3a893297ab57b4cdceef19a5 (diff)
downloadbugzilla-0eff9a881c046ad7d80fd9c6cd88a2017e461acb.tar.gz
bugzilla-0eff9a881c046ad7d80fd9c6cd88a2017e461acb.tar.xz
Bug 1225247 - Bug assignee should be displayed in a more prominent way
Diffstat (limited to 'extensions/BugModal/template')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl17
1 files changed, 14 insertions, 3 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
index 3c942d9da..35621f544 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -17,8 +17,10 @@
END;
bugid = bug.id;
- # this is used in a few places
+ # these are used in a few places
is_cced = bug.cc.contains(user.login);
+ unassigned = (bug.assigned_to.login == "nobody@mozilla.org")
+ || (bug.assigned_to.login.search('\.bugs$'));
# custom fields that have custom rendering, or should not be rendered
rendered_custom_fields = [
@@ -216,6 +218,17 @@
in [% firefox_fixed_version || bug.target_milestone FILTER html %]
[% ELSIF bug.dup_id %]
of [% terms.bug _ " $bug.dup_id" FILTER bug_link(bug.dup_id) FILTER none %]
+ [% ELSIF bug.resolution == "" %]
+ <div id="status-assignee">
+ [%
+ IF unassigned;
+ "Unassigned";
+ ELSE;
+ "Assigned to ";
+ INCLUDE bug_modal/user.html.tmpl u=bug.assigned_to nick_only=1;
+ END;
+ %]
+ </div>
[% END %]
[% IF needinfo.size %]
<div id="status-needinfo">
@@ -477,8 +490,6 @@
[%# === people === %]
[%
- unassigned = (bug.assigned_to.login == "nobody@mozilla.org")
- || (bug.assigned_to.login.search('\.bugs$'));
sub = [];
sub.push("Reporter: " _ bug.reporter.moz_nick);
sub.push(unassigned ? "Unassigned" : "Assigned: " _ bug.assigned_to.moz_nick);