summaryrefslogtreecommitdiffstats
path: root/extensions
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
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')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl17
-rw-r--r--extensions/BugModal/web/bug_modal.css6
2 files changed, 19 insertions, 4 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);
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;