Commit 7cc0c53c authored by Sunil Joshi's avatar Sunil Joshi Committed by Simon Green

Bug 903337 - Do not display the CC list and the "Remove selected CCs" checkbox…

Bug 903337 - Do not display the CC list and the "Remove selected CCs" checkbox if the CC list is empty r=simon, a=glob
parent 0b1ea79e
...@@ -92,7 +92,7 @@ TUI_hide_default('attachment_text_field'); ...@@ -92,7 +92,7 @@ TUI_hide_default('attachment_text_field');
cols = constants.COMMENT_COLS cols = constants.COMMENT_COLS
wrap = 'soft' wrap = 'soft'
%] %]
[% IF NOT bug.cc || NOT bug.cc.contains(user.login) %] [% IF NOT bug.cc.contains(user.login) %]
<br> <br>
<input type="checkbox" id="addselfcc" name="addselfcc" <input type="checkbox" id="addselfcc" name="addselfcc"
[%~ ' checked="checked"' [%~ ' checked="checked"'
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
wrap = 'soft' wrap = 'soft'
classes = classNames classes = classNames
%] %]
[% IF NOT attachment.bug.cc || NOT attachment.bug.cc.contains(user.login) %] [% IF NOT attachment.bug.cc.contains(user.login) %]
<input type="checkbox" id="addselfcc" name="addselfcc" <input type="checkbox" id="addselfcc" name="addselfcc"
[%~ ' checked="checked"' [%~ ' checked="checked"'
IF user.settings.state_addselfcc.value == 'always' IF user.settings.state_addselfcc.value == 'always'
......
...@@ -738,7 +738,7 @@ ...@@ -738,7 +738,7 @@
</th> </th>
<td> <td>
[% IF user.id %] [% IF user.id %]
[% IF NOT bug.cc || NOT bug.cc.contains(user.login) %] [% IF NOT bug.cc.contains(user.login) %]
<input type="checkbox" id="addselfcc" name="addselfcc" <input type="checkbox" id="addselfcc" name="addselfcc"
[% " checked=\"checked\"" [% " checked=\"checked\""
IF user.settings.state_addselfcc.value == 'always' IF user.settings.state_addselfcc.value == 'always'
...@@ -748,7 +748,7 @@ ...@@ -748,7 +748,7 @@
<br> <br>
[% END %] [% END %]
[% END %] [% END %]
[% bug.cc.size || 0 FILTER html %] [% bug.cc.size FILTER html %]
[% IF bug.cc.size == 1 %] [% IF bug.cc.size == 1 %]
user user
[% ELSE %] [% ELSE %]
...@@ -779,7 +779,7 @@ ...@@ -779,7 +779,7 @@
%] %]
</div> </div>
[% END %] [% END %]
[% IF bug.cc %] [% IF bug.cc.size %]
<select id="cc" multiple="multiple" size="5" <select id="cc" multiple="multiple" size="5"
[% IF bug.user.canedit %]name="cc"[% END %]> [% IF bug.user.canedit %]name="cc"[% END %]>
[% FOREACH c = bug.cc %] [% FOREACH c = bug.cc %]
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
[% rightcells.push('qa_contact') %] [% rightcells.push('qa_contact') %]
[% END %] [% END %]
[% rightcells.push('') %] [% rightcells.push('') %]
[% IF bug.cc %] [% IF bug.cc.size %]
[% rightcells.push('cc') %] [% rightcells.push('cc') %]
[% END %] [% END %]
[% IF bug.keywords %] [% IF bug.keywords %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment