From 0eff9a881c046ad7d80fd9c6cd88a2017e461acb Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 30 Nov 2015 16:15:50 +0800 Subject: Bug 1225247 - Bug assignee should be displayed in a more prominent way --- .../template/en/default/bug_modal/edit.html.tmpl | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'extensions/BugModal/template/en/default') 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 == "" %] +
+ [% + IF unassigned; + "Unassigned"; + ELSE; + "Assigned to "; + INCLUDE bug_modal/user.html.tmpl u=bug.assigned_to nick_only=1; + END; + %] +
[% END %] [% IF needinfo.size %]
@@ -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); -- cgit v1.2.3-24-g4f1b