diff --git a/app/Modules/AdversaryMeter/Http/Controllers/CyberTodoController.php b/app/Modules/AdversaryMeter/Http/Controllers/CyberTodoController.php index 786f2b7..8f1adca 100644 --- a/app/Modules/AdversaryMeter/Http/Controllers/CyberTodoController.php +++ b/app/Modules/AdversaryMeter/Http/Controllers/CyberTodoController.php @@ -71,11 +71,11 @@ public function vulns(string $hash) $hash->views = (int)$hash->views + 1; $hash->update(); - $assets = Asset::select('assets.*') - ->where('is_monitored', true) - ->join('assets_tags', 'assets_tags.asset_id', '=', 'assets.id') - ->join('assets_tags_hashes', 'assets_tags_hashes.tag', '=', 'assets_tags.tag') - ->where('assets_tags_hashes.hash', $hash->hash) + $assets = Asset::select('am_assets.*') + ->where('am_assets.is_monitored', true) + ->join('am_assets_tags', 'am_assets_tags.asset_id', '=', 'am_assets.id') + ->join('am_assets_tags_hashes', 'am_assets_tags_hashes.tag', '=', 'am_assets_tags.tag') + ->where('am_assets_tags_hashes.hash', $hash->hash) ->get(); return $assets->flatMap(fn(Asset $asset) => $asset->alerts()->get()->map(function (Alert $alert) use ($asset) { diff --git a/public/images/nothing-to-show.png b/public/images/nothing-to-show.png new file mode 100644 index 0000000..a17935e Binary files /dev/null and b/public/images/nothing-to-show.png differ diff --git a/resources/lang/fr.json b/resources/lang/fr.json index 7558b66..710dcf6 100644 --- a/resources/lang/fr.json +++ b/resources/lang/fr.json @@ -146,5 +146,6 @@ "An error occurred.": "Une erreur est survenue.", "An error occurred. Try again in a moment or contact the support.": "Une erreur est survenue. Réessayez dans un instant ou contactez le support.", "Your file has been successfully uploaded. It will be available shortly.": "Votre fichier a bien été importé. Il sera disponible dans quelques instants.", - "Text successfully copied to clipboard.": "Le text a été copié dans le presse-papiers." + "Text successfully copied to clipboard.": "Le text a été copié dans le presse-papiers.", + "Someone has shared vulnerabilities with you on assets for which you are responsible. Please fix the vulnerabilities below and check the corresponding box. A new scan will verify that the problem has been solved.": "Quelqu'un a partagé avec vous des vulnérabilités sur des actifs dont vous êtes responsable. Veuillez corriger les vulnérabilités ci-dessous et cocher la case correspondante. Un nouveau scan vérifiera que le problème a été résolu." } \ No newline at end of file diff --git a/resources/views/cyber-todo.blade.php b/resources/views/cyber-todo.blade.php index 813911a..2f4d4cd 100644 --- a/resources/views/cyber-todo.blade.php +++ b/resources/views/cyber-todo.blade.php @@ -46,7 +46,7 @@ .header .logo { float: left; margin: 0; - padding: 15px 0 5px 30px; + padding: 5px 0 5px 15px; } .content { @@ -202,24 +202,22 @@

-

My Cyber TODO

+

Cyber TODO

- Someone has shared vulnerabilities with you on assets for which you are responsible. Please fix the - vulnerabilities below and check the corresponding box. A new scan will verify that the problem has been - solved. + {{ __('Someone has shared vulnerabilities with you on assets for which you are responsible. Please fix the vulnerabilities below and check the corresponding box. A new scan will verify that the problem has been solved.') }}