From 4d4ac306189230eb9fbd44d6da61ff23879eab3c Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 16 Sep 2022 09:02:52 +0200 Subject: [PATCH] chg: [periodic_notification] Different rendering for new correlation depending on the amount --- app/View/Emails/notification_common.ctp | 87 +++++++++++++++++-------- 1 file changed, 60 insertions(+), 27 deletions(-) diff --git a/app/View/Emails/notification_common.ctp b/app/View/Emails/notification_common.ctp index 055a92fbd..f25b66b48 100644 --- a/app/View/Emails/notification_common.ctp +++ b/app/View/Emails/notification_common.ctp @@ -22,6 +22,8 @@ if (empty($this->__vars)) { $default_vars = [ 'event_table_include_basescore' => true, 'event_table_max_event_count' => 30, + 'correlation_table_advanced_ui' => 10, + 'correlation_table_max_count' => 50, 'additional_taxonomy_event_list' => [ 'PAP' => 'PAP:' ], @@ -454,37 +456,68 @@ array_splice($mitre_attack_techniques, 10);

- -
- - - - - - - - + + +
+ + + + + + + + + - - - - :: - - - - - - - - - - + + + :: - -
- + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ $vars['correlation_table_max_count']) { + echo '⮞ ' . __n( + '%s correlation not displayed.', + '%s correlations not displayed.', + count($new_correlations) - $vars['correlation_table_max_count'], + sprintf('%s', count($new_correlations) - $vars['correlation_table_max_count']) + ); + } + ?> +