[% END %]
[% IF bug.cc && bug.cc.size %]
- <input type="hidden" name="removecc" id="removecc">
- <span id="cc-latch">▸</span>
+ [% IF user.id %]
+ <input type="hidden" name="removecc" id="removecc">
+ <span id="cc-latch">▸</span>
+ [% END %]
<span id="cc-summary" data-count="[% bug.cc.size FILTER none %]">
[%
IF bug.cc.size == 1;
color: #999;
}
-#cc-latch, #cc-summary {
+#cc-latch {
cursor: pointer;
}
-#cc-summary:hover {
- text-decoration: underline;
-}
-
#cc-list {
max-height: 150px;
overflow-y: auto;
width: 100%;
}
+.cc-loadable {
+ cursor: pointer;
+}
+
+.cc-loadable:hover {
+ text-decoration: underline;
+}
+
/* actions */
#top-actions {
);
}
- $('#cc-latch, #cc-summary')
- .click(function(event) {
- event.preventDefault();
- var latch = $('#cc-latch');
+ if (BUGZILLA.user.id) {
+ $('#cc-summary').addClass('cc-loadable');
+ $('#cc-latch, #cc-summary')
+ .click(function(event) {
+ event.preventDefault();
+ var latch = $('#cc-latch');
- if (latch.data('expanded')) {
- latch.data('expanded', false).html('▸');
- $('#cc-list').hide();
- }
- else {
- latch.data('expanded', true).html('▾');
- $('#cc-list').show();
- if (!latch.data('fetched')) {
- ccListLoading();
- ccListUpdate();
+ if (latch.data('expanded')) {
+ latch.data('expanded', false).html('▸');
+ $('#cc-list').hide();
}
- }
- });
+ else {
+ latch.data('expanded', true).html('▾');
+ $('#cc-list').show();
+ if (!latch.data('fetched')) {
+ ccListLoading();
+ ccListUpdate();
+ }
+ }
+ });
+ }
// copy summary to clipboard