summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-11-26 06:17:19 +0100
committerByron Jones <glob@mozilla.com>2015-11-26 06:17:19 +0100
commit4e97b5b50641a9c5f450d5b75bd03e7767a0ef84 (patch)
treed4139a604f99b2a4872d0949e3764dfede303012
parent187fe43d154a17e596a1985a09d86f1a2b5ef0f1 (diff)
downloadbugzilla-4e97b5b50641a9c5f450d5b75bd03e7767a0ef84.tar.gz
bugzilla-4e97b5b50641a9c5f450d5b75bd03e7767a0ef84.tar.xz
Bug 1228101 - The "Add" button for CC is oddly placed
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl10
-rw-r--r--extensions/BugModal/web/bug_modal.css2
2 files changed, 9 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 c22c0a7f8..3c942d9da 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -613,7 +613,6 @@
%]
[% IF user.id %]
- <button type="button" id="add-cc-btn" class="minor">Add</button>
<div id="add-cc-container" style="display:none">
[% INCLUDE global/userselect.html.tmpl
id = "add-cc"
@@ -637,10 +636,17 @@
END;
%]
</span>
- <div id="cc-list" style="display:none"></div>
[% ELSE %]
<i>Nobody</i>
[% END %]
+
+ [% IF user.id %]
+ <button type="button" id="add-cc-btn" class="minor">Add</button>
+ [% END %]
+
+ [% IF bug.cc && bug.cc.size %]
+ <div id="cc-list" style="display:none"></div>
+ [% END %]
[% END %]
[% END %]
diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css
index 242c5cd22..c74824dad 100644
--- a/extensions/BugModal/web/bug_modal.css
+++ b/extensions/BugModal/web/bug_modal.css
@@ -343,7 +343,7 @@ input[type="number"] {
}
#add-cc-btn {
- float: right;
+ margin-left: 8px;
}
#add-cc {