Skip to content

Commit

Permalink
Bug 1225247 - Bug assignee should be displayed in a more prominent way
Browse files Browse the repository at this point in the history
  • Loading branch information
globau committed Nov 30, 2015
1 parent c36506a commit 0eff9a8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
17 changes: 14 additions & 3 deletions extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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">
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 5 additions & 1 deletion extensions/BugModal/web/bug_modal.css
Expand Up @@ -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;
Expand Down

0 comments on commit 0eff9a8

Please sign in to comment.