Skip to content

Commit

Permalink
#66 add summary() and new short report in Abuse Finder
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 28, 2017
1 parent b24c050 commit 21ac80f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions thehive-templates/Abuse_Finder_2_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<div class="panel panel-info" ng-if="success">
<div class="panel-heading">
Abuse Finder Information for <strong>{{artifact.data}}</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal" ng-if="content.abuse_finder.names">
<dt>Names:</dt>
<dd>
<div ng-repeat="name in content.abuse_finder.names">
{{name}}
</div>
</dd>
</dl>
<dl class="dl-horizontal" ng-if="content.abuse_finder.names">
<dt>Abuse addresses:</dt>
<dd>
<div ng-repeat="abuse in content.abuse_finder.abuse">
{{abuse}}
</div>
</dd>
</dl>
</div>
</div>

<!-- General error -->
<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong>
</div>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>
3 changes: 3 additions & 0 deletions thehive-templates/Abuse_Finder_2_0/short.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<span class="label" ng-repeat="t in content.taxonomies" ng-class="{'info': 'label-info', 'safe': 'label-success', 'suspicious': 'label-warning', 'malicious':'label-danger'}[t.level]">
{{t.namespace}}:{{t.predicate}}={{t.value}}
</span>

0 comments on commit 21ac80f

Please sign in to comment.