Skip to content

Commit

Permalink
Merge pull request #1093 from SEKOIA-IO/feat/sekoia_improve_templates
Browse files Browse the repository at this point in the history
feat: Improve templates for SEKOIA analyzers
  • Loading branch information
jeromeleonard authored Jul 22, 2022
2 parents 414c85f + 1e7d89d commit 95bda7d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
13 changes: 12 additions & 1 deletion thehive-templates/SEKOIAIntelligenceCenter_Context_1_0/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ <h4>{{bundle.id}}</h4>
</div>
<div class="panel-body">
<div>
<dl class="dl-horizontal">
<dt>ID</dt>
<dd class="wrap">{{item.id}}</dd>
</dl>
<dl class="dl-horizontal">
<dt>Type</dt>
<dd class="wrap">{{item.type}}</dd>
<dd class="wrap">{{item.type}}<span ng-if="item.x_ic_is_source"> (source)</span><span ng-if="item.x_ic_is_sector"> (sector)</span></dd>
</dl>
<dl class="dl-horizontal" ng-if="item.aliases">
<dt>Aliases</dt>
Expand All @@ -25,6 +29,13 @@ <h4>{{bundle.id}}</h4>
</div>
</dd>
</dl>
<dl class="dl-horizontal">
<dt>Tags</dt>
<dd>
<span class="label label-danger" style="margin: 2px;" ng-if="item.revoked" >Revoked</span>
<span class="label label-success" style="margin: 2px;" ng-if="!item.revoked" >Not Revoked</span>
</dd>
</dl>
<dl class="dl-horizontal">
<dt>Description</dt>
<dd class="wrap">{{item.description || 'No description' }}</dd>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ <h2 ng-if="content.results.length > 0">{{content.results.length}} Indicator(s)</
</div>
<div class="panel-body">
<div>
<dl class="dl-horizontal">
<dt>ID</dt>
<dd class="wrap">{{item.id}}</dd>
</dl>
<dl class="dl-horizontal">
<dt>Tags</dt>
<dd>
<span class="label label-danger" style="margin: 2px;" ng-if="item.revoked" >Revoked</span>
<span class="label label-success" style="margin: 2px;" ng-if="!item.revoked" >Not Revoked</span>
</dd>
</dl>
<dl class="dl-horizontal">
<dt>Description</dt>
<dd class="wrap">{{indicator.description || 'No description' }}</dd>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ <h2 ng-if="content.results.length > 0">{{content.results.length}} Observable(s)<
</div>
<div class="panel-body">
<div>
<dl class="dl-horizontal">
<dt>ID</dt>
<dd class="wrap">{{item.id}}</dd>
</dl>
<dl class="dl-horizontal" ng-if="observable.value">
<dt>Value</dt>
<dd class="wrap">{{observable.value | fang}}</dd>
Expand Down

0 comments on commit 95bda7d

Please sign in to comment.