From 9fae7a21933b6fe81aa9ff5fa8602c3a7782af23 Mon Sep 17 00:00:00 2001 From: iglocska Date: Tue, 25 Nov 2014 13:21:25 +0100 Subject: [PATCH] Alternate event org display - shows both orgc and org to normal users - naming convention changed (orgc => source org, org => member org) - this should allow users to see if an event was generated on their instance or not. --- app/Model/Server.php | 8 +++++++ app/View/Events/index.ctp | 28 +++++++++++++++--------- app/View/Events/view.ctp | 46 +++++++++++++++++++++++++++------------ 3 files changed, 58 insertions(+), 24 deletions(-) diff --git a/app/Model/Server.php b/app/Model/Server.php index c35dc67a5..99aa3d53f 100755 --- a/app/Model/Server.php +++ b/app/Model/Server.php @@ -373,6 +373,14 @@ class Server extends AppModel { 'test' => 'testForTermsFile', 'type' => 'string' ), + 'showorgalternate' => array( + 'level' => 2, + 'description' => 'True enables the alternate org fields for the event index (source org and member org) instead of the traditional way of showing only an org field. This allows users to see if an event was uploaded by a member organisation on their MISP instance, or if it originated on an interconnected instance.', + 'value' => '', + 'errorMessage' => '', + 'test' => 'testBool', + 'type' => 'boolean' + ), ), 'GnuPG' => array( 'branch' => 1, diff --git a/app/View/Events/index.ctp b/app/View/Events/index.ctp index c17383778..a3e14fa4d 100755 --- a/app/View/Events/index.ctp +++ b/app/View/Events/index.ctp @@ -46,16 +46,24 @@ Paginator->sort('published');?> - Paginator->sort('org'); ?> - + Paginator->sort('org', 'Source org'); ?> + Paginator->sort('org', 'Member org'); ?> + + Paginator->sort('org'); ?> + + Paginator->sort('owner org');?> + - - - Paginator->sort('owner org');?> - - Paginator->sort('id');?> Tags @@ -101,7 +109,7 @@   - +   - -
Org
-
- -   -
- - -
Owner org
-
- -   -
- + +
Source Organisation
+
+ +   +
+
Member Organisation
+
+ +   +
+ +
Org
+
+ +   +
+ + +
Owner org
+
+ +   +
+
Contributors