Skip to content

Commit

Permalink
#214 improve Domaintools new flavors reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 23, 2018
1 parent d1552b2 commit f5ebe6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 34 deletions.
37 changes: 9 additions & 28 deletions thehive-templates/DomainTools_Reputation_2_0/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>


<div class="panel panel-info" ng-if="success">
<div class="panel panel-primary" ng-if="success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
Expand All @@ -23,34 +23,15 @@

</dd>
</dl>
<br><br>
<h4 class="panel-title">Reasons</h4>
<br>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Domain</th>
<th>Risk Score</th>
<th>Reasons</th>
</tr>
</thead>
<tbody ng-repeat="r in content.components">
<tr>
<td>{{r.domain}}</td>
<td>
<span class="label" ng-class="{'label-success' : content.risk_score == 0, 'label-warning' : content.risk_score > 0 && content.risk_score <= 50,
'label-danger': content.risk_score > 50}">
{{r.risk_score}}
<dl ng-if="content.reasons" class="dl-horizontal">
<dt>Reasons</dt>
<dd>
<span ng-repeat="r in content.reasons " class="label label-primary mr-xxxs">
{{content.risk_score}}
</span>
</td>
<td >
<ul class="list-unstyled">
<li ng-repeat="reason in r.reasons">{{reason}}</li>
</ul>
</td>
</tr>
</tbody>
</table>

</dd>
</dl>

</div>
</div>
12 changes: 6 additions & 6 deletions thehive-templates/DomainTools_RiskEvidence_2_0/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>


<div class="panel panel-info" ng-if="success">
<div class="panel panel-primary" ng-if="success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
Expand All @@ -24,7 +24,7 @@
</dd>
</dl>
<br><br>
<h4 class="panel-title">Compoments</h4>
<h4 class="panel-title">Components</h4>
<br>
<table class="table table-striped table-bordered">
<thead>
Expand All @@ -34,16 +34,16 @@ <h4 class="panel-title">Compoments</h4>
<th>Evidence</th>
</tr>
</thead>
<tbody ng-repeat="r in content.components">
<tr>
<tbody>
<tr ng-repeat="r in content.components">
<td>{{r.name}}</td>
<td>
<span class="label" ng-class="{'label-success' : content.risk_score == 0, 'label-warning' : content.risk_score > 0 && content.risk_score <= 50,
'label-danger': content.risk_score > 50}">
{{r.risk_score}}
</span>
</span>
</td>
<td >
<td>
<ul class="list-unstyled">
<li ng-repeat="e in r.evidence">{{e}}</li>
</ul>
Expand Down

0 comments on commit f5ebe6d

Please sign in to comment.