Skip to content

Commit

Permalink
#133 create short and long report
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Feb 26, 2018
1 parent 0a217e6 commit c44e761
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
37 changes: 37 additions & 0 deletions thehive-templates/Cymon_2_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<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>

<div class="panel panel-info" ng-if="success">
<div class="panel-heading">
<!-- <strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong> -->
<strong>Cymon.io : {{(artifact.data || artifact.attachment.name) | fang}}</strong>

</div>
<div class="panel-body">

<h4>
<strong>
{{(artifact.data || artifact.attachment.name) | fang}} is associated to:
</strong>
</h4>
<div >
<dl ng-repeat="(k,v) in content.Founds" class="dl-horizontal" >
<dt ng-if="v">{{k}}</dt>
<dd ng-repeat="l in content[k]">{{l}}</dt>
</dl>
</div>

<dl class="dl-horizontal" >
<dt>permalink</dt>
<dd ><a href=content.permalink>{{content.permalink}}</a></dt>
</dl>

</div>
</div>
</div>
3 changes: 3 additions & 0 deletions thehive-templates/Cymon_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 c44e761

Please sign in to comment.