diff --git a/www/src/app/core/core.module.js b/www/src/app/core/core.module.js index eabdde30c..32f072132 100755 --- a/www/src/app/core/core.module.js +++ b/www/src/app/core/core.module.js @@ -8,6 +8,7 @@ import requireRolesDirective from './directives/require-roles/require-roles.dire import compareToDirective from './directives/compare-to/compare-to.directive'; import userAvatarDirective from './directives/user-avatar/user-avatar.directive'; import tlpDirective from './directives/tlp/tlp.directive'; +import taxonomieDirective from './directives/taxonomie/taxonomie.directive'; import autofocusDirective from './directives/autofocus/autofocus.directive'; import constants from './services/constants'; @@ -37,8 +38,9 @@ fixedHeightDirective(core); fileChooserDirective(core); requireRolesDirective(core); compareToDirective(core); -userAvatarDirective(core); +userAvatarDirective(core) tlpDirective(core); +taxonomieDirective(core); autofocusDirective(core); /* Common services */ @@ -54,4 +56,4 @@ constants(core); /* Filters */ fangFilter(core); -export default core; +export default core; \ No newline at end of file diff --git a/www/src/app/core/directives/taxonomie/taxonomie.directive.js b/www/src/app/core/directives/taxonomie/taxonomie.directive.js new file mode 100644 index 000000000..688865f14 --- /dev/null +++ b/www/src/app/core/directives/taxonomie/taxonomie.directive.js @@ -0,0 +1,26 @@ +'use strict'; + +import _ from 'lodash/core'; + +import tpl from './taxonomie.html'; + +export default function (app) { + app.directive('taxonomie', taxonomie); + + function taxonomie() { + 'ngInject'; + + return { + templateUrl: tpl, + scope: { + taxonomies: '=' + }, + replace: true, + link: linkFn + }; + + function linkFn(scope) { + + } + } +} \ No newline at end of file diff --git a/www/src/app/core/directives/taxonomie/taxonomie.html b/www/src/app/core/directives/taxonomie/taxonomie.html new file mode 100644 index 000000000..6ae97e803 --- /dev/null +++ b/www/src/app/core/directives/taxonomie/taxonomie.html @@ -0,0 +1,15 @@ +
+
+ + {{taxonomy.namespace}}:{{taxonomy.predicate}}{{(taxonomy.value != undefined && taxonomy.value!= null) ? '="'+taxonomy.value+'"': ''}} + +
+ +
+ No summary available +
+
\ No newline at end of file diff --git a/www/src/app/pages/jobs/components/job.details.html b/www/src/app/pages/jobs/components/job.details.html index 75674573c..886228237 100644 --- a/www/src/app/pages/jobs/components/job.details.html +++ b/www/src/app/pages/jobs/components/job.details.html @@ -5,40 +5,56 @@
- Artifact -

- [{{$ctrl.job.dataType | uppercase}}] - {{(($ctrl.job.dataType === 'file') ? $ctrl.job.attachment.name: $ctrl.job.data) | fang}} - {{$ctrl.job.label || 'No Label'}} - -

-

- [{{$ctrl.job.dataType | uppercase}}] {{(($ctrl.job.dataType === 'file') ? $ctrl.job.attachment.name : $ctrl.job.data) | fang}} -

-
- - Date -

- -

-
- - TLP -

- -

-
- - PAP -

- -

-
- - - Status -

- {{$ctrl.job.status}} -

+
+ Artifact +

+ [{{$ctrl.job.dataType | uppercase}}] + {{(($ctrl.job.dataType === 'file') ? $ctrl.job.attachment.name: $ctrl.job.data) | fang}} + {{$ctrl.job.label || 'No Label'}} + +

+

+ [{{$ctrl.job.dataType | uppercase}}] + {{(($ctrl.job.dataType === 'file') ? $ctrl.job.attachment.name : $ctrl.job.data) | fang}} +

+
+ +
+ Date +

+ +

+
+ +
+ TLP +

+ +

+
+ +
+ PAP +

+ +

+
+ +
+ Status +

+ {{$ctrl.job.status}} +

+
+ +
+ Report summary +

+ +

+
+
\ No newline at end of file