Skip to content

Commit 33b9dc2

Browse files
committed
Fix spam reporting UI by bolding labels for SpamCop
1 parent 6c2b168 commit 33b9dc2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

modules/core/message_list_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function icon_callback($vals, $style, $output_mod) {
422422
if (!hm_exists('message_controls')) {
423423
function message_controls($output_mod) {
424424
$txt = '';
425-
$controls = ['read', 'unread', 'flag', 'unflag', 'delete', 'archive', 'junk', 'report_spam'];
425+
$controls = ['read', 'unread', 'flag', 'unflag', 'delete', 'archive', 'junk']; // 'report_spam'
426426
$controls = array_filter($controls, function($val) use ($output_mod) {
427427
if (in_array($val, [$output_mod->get('list_path', ''), strtolower($output_mod->get('core_msg_control_folder', ''))])) {
428428
return false;

modules/core/output_modules.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,7 @@ protected function output() {
23422342
$reset = $enabled ? '<span class="tooltip_restore" restore_aria_label="Restore default value"><i class="bi bi-arrow-counterclockwise refresh_list reset_default_value_checkbox"></i></span>' : '';
23432343

23442344
return '<tr class="report_spam_setting"><td><label class="form-check-label" for="spamcop_enabled">'.
2345-
$this->trans('Enable SpamCop reporting').'</label></td>'.
2345+
'<strong>'.$this->trans('Enable SpamCop reporting').'</strong></label></td>'.
23462346
'<td><input class="form-check-input" type="checkbox" '.$checked.' id="spamcop_enabled" name="spamcop_settings[enabled]" data-default-value="false" value="1" />'.$reset.'</td></tr>';
23472347
}
23482348
}
@@ -2391,7 +2391,7 @@ protected function output() {
23912391
$reset = $enabled ? '<span class="tooltip_restore" restore_aria_label="Restore default value"><i class="bi bi-arrow-counterclockwise refresh_list reset_default_value_checkbox"></i></span>' : '';
23922392

23932393
return '<tr class="report_spam_setting"><td><label class="form-check-label" for="abuseipdb_enabled">'.
2394-
$this->trans('Enable AbuseIPDB reporting').'</label></td>'.
2394+
'<strong>'.$this->trans('Enable AbuseIPDB reporting').'</strong></label></td>'.
23952395
'<td><input class="form-check-input" type="checkbox" '.$checked.' id="abuseipdb_enabled" name="abuseipdb_settings[enabled]" data-default-value="false" value="1" />'.$reset.'</td></tr>';
23962396
}
23972397
}
@@ -2408,7 +2408,7 @@ protected function output() {
24082408
$reset = $enabled ? '<span class="tooltip_restore" restore_aria_label="Restore default value"><i class="bi bi-arrow-counterclockwise refresh_list reset_default_value_checkbox"></i></span>' : '';
24092409

24102410
return '<tr class="report_spam_setting"><td><label class="form-check-label" for="apwg_enabled">'.
2411-
$this->trans('Enable APWG phishing reporting').'</label></td>'.
2411+
'<strong>'.$this->trans('Enable APWG phishing reporting').'</strong></label></td>'.
24122412
'<td><input class="form-check-input" type="checkbox" '.$checked.' id="apwg_enabled" name="apwg_settings[enabled]" data-default-value="false" value="1" />'.$reset.'</td></tr>';
24132413
}
24142414
}

modules/core/site.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ button {
706706
.snoozed_setting,
707707
.trash_setting,
708708
.drafts_setting,
709-
.privacy_setting {
709+
.privacy_setting,
710+
.report_spam_setting {
710711
display: none;
711712
}
712713
.update_search_label_field {

0 commit comments

Comments
 (0)