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 ++++++++++++++--- extensions/BugModal/web/bug_modal.css | 6 +++++- 2 files changed, 19 insertions(+), 4 deletions(-) (limited to 'extensions') 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); diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css index c74824dad..fb17a5a71 100644 --- a/extensions/BugModal/web/bug_modal.css +++ b/extensions/BugModal/web/bug_modal.css @@ -250,10 +250,14 @@ input[type="number"] { padding-top: 4px; } -#status-needinfo, #status-needinfo .vcard { +#status-assignee, #status-assignee .vcard, #status-needinfo, #status-needinfo .vcard { display: inline; } +#status-assignee, #status-needinfo { + margin-left: 8px; +} + #duplicate-container, #duplicate-actions, #bottom-duplicate-container, #bottom-duplicate-actions { display: table-cell; -- cgit v1.2.3-24-g4f1b