fix: [signing] removed colour coding of protected/unprotected events

- gave the idea that one is "right" and one is "wrong", whilst they're just for different use-cases
pull/8063/merge
iglocska 2022-03-17 14:50:14 +01:00
parent f16d83c60c
commit 90d232bde2
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@
</td>
<?php endif; ?>
<td class="short">
<span><a href="<?= $baseurl."/events/view/".$eventId ?>" class="dblclickActionElement threat-level-<?= strtolower(h($event['ThreatLevel']['name'])) ?>" title="<?= __('Threat level: %s', h($event['ThreatLevel']['name'])) ?>"><?= $eventId ?></a> <?= !empty($event['Event']['protected']) ? sprintf('<i class="green fas fa-lock" title="%s"></i>', __('Protected event')) : ''?></span>
<span><a href="<?= $baseurl."/events/view/".$eventId ?>" class="dblclickActionElement threat-level-<?= strtolower(h($event['ThreatLevel']['name'])) ?>" title="<?= __('Threat level: %s', h($event['ThreatLevel']['name'])) ?>"><?= $eventId ?></a> <?= !empty($event['Event']['protected']) ? sprintf('<i class="fas fa-lock" title="%s"></i>', __('Protected event')) : ''?></span>
</td>
<?php if (in_array('clusters', $columns, true)): ?>
<td class="short">

View File

@ -3,8 +3,8 @@
$event = Hash::extract($data, $field['event_path']);
if ($event['protected']) {
echo sprintf(
'<span class="fas fa-lock green"></span> %s %s %s <br />',
__('Event is in protected mode.'),
'<span class="fas fa-lock"></span> %s %s %s <br />',
__('Event is in protected mode. (Limited distribution)'),
!$field['owner'] ? '' : sprintf(
'<br /><a href="#" onClick="%s" title="%s"><i class="fas fa-unlock"></i> %s</a>',
sprintf(
@ -64,7 +64,7 @@
}
} else {
echo sprintf(
'<span class="red fas fa-unlock"></span> <span class="red">%s</span> %s<br />',
'<span class="fas fa-unlock"></span> <span>%s</span> %s<br />',
__('Event is in unprotected mode.'),
!$field['owner'] ? '' : sprintf(
'<br /><a href="#" onClick="%s" title="%s"><i class="fas fa-lock"></i> %s</a>',