summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorGuy Pyrzak <guy.pyrzak@gmail.com>2010-10-03 01:37:52 +0200
committerGuy Pyrzak <guy.pyrzak@gmail.com>2010-10-03 01:37:52 +0200
commit45071f40f52131bc605130c40352d477f85d0f05 (patch)
tree73f5ec3b31f74d9aba38a110023428f77f10dc65 /template
parentaf7acc5ca64312a72de46460515b0f1282729c58 (diff)
downloadbugzilla-45071f40f52131bc605130c40352d477f85d0f05.tar.gz
bugzilla-45071f40f52131bc605130c40352d477f85d0f05.tar.xz
Bug 601218: Do not display (show) when the CC list is empty
r=LpSolit, a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/edit.html.tmpl24
1 files changed, 14 insertions, 10 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 3b2d4d29b..ce8f76fdc 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -810,9 +810,11 @@
including you
[% END %]
[% END %]
- <span id="cc_edit_area_showhide_container" class="bz_default_hidden">
- (<a href="#" id="cc_edit_area_showhide">[% IF user.id %]edit[% ELSE %]show[% END %]</a>)
- </span>
+ [% IF user.id || bug.cc.size %]
+ <span id="cc_edit_area_showhide_container" class="bz_default_hidden">
+ (<a href="#" id="cc_edit_area_showhide">[% IF user.id %]edit[% ELSE %]show[% END %]</a>)
+ </span>
+ [% END %]
<div id="cc_edit_area">
<br>
[% IF user.id %]
@@ -843,13 +845,15 @@
[% END %]
[% END %]
</div>
- <script type="text/javascript">
- hideEditableField( 'cc_edit_area_showhide_container',
- 'cc_edit_area',
- 'cc_edit_area_showhide',
- '',
- '');
- </script>
+ [% IF user.id || bug.cc.size %]
+ <script type="text/javascript">
+ hideEditableField( 'cc_edit_area_showhide_container',
+ 'cc_edit_area',
+ 'cc_edit_area_showhide',
+ '',
+ '');
+ </script>
+ [% END %]
</td>
</tr>
[% END %]