-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
502234c
commit 0e26be6
Showing
1 changed file
with
53 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,57 @@ | ||
<div class="panel panel-danger" ng-if="success && content.values.length > 0"> | ||
<div class="panel-heading"> | ||
AbuseIPDB Report | ||
</div> | ||
<div class="panel-body"> | ||
<dl class="dl-horizontal"> | ||
<dt>Matches</dt> | ||
<dd ng-repeat="m in content.values">{{m}}</dd> | ||
</dl> | ||
<div class="panel panel-info" ng-if="success && content.values.length > 0"> | ||
<div class="panel-heading"> | ||
AbuseIPDB Report for {{artifact.data | fang}} | ||
</div> | ||
<div class="panel-body"> | ||
<table class="table table-striped" ng-if="content.values"> | ||
<thead> | ||
<tr> | ||
<th>Created Date</th> | ||
<th>Abuse Confidence Score</th> | ||
<th>ISO Code</th> | ||
<th>Country</th> | ||
<th>Withelisted</th> | ||
<th>Categories</th> | ||
|
||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="r in content.values | orderBy:'-created'"> | ||
<td>{{r.created}}</td> | ||
<td><span class="text" | ||
ng-class="{ 'text-danger': r.abuseConfidenceScore >=70 ,'text-warning': r.abuseConfidenceScore < 70, 'text-success': r.abuseConfidenceScore == 0}">{{r.abuseConfidenceScore}}</span></td> | ||
<td>{{r.country}}</td> | ||
<td>{{r.isoCode}}</td> | ||
<td>{{r.isWhitelisted}}</td> | ||
<td> | ||
<span ng-repeat="c in r.categories_strings"><span class="label label-primary">{{c}}</span> </span> | ||
</td> | ||
|
||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="panel panel-success" ng-if="success && content.values.length == 0"> | ||
<div class="panel-heading"> | ||
AbuseIPDB Report | ||
<div class="panel panel-success" ng-if="success && content.values.length == 0"> | ||
<div class="panel-heading"> | ||
AbuseIPDB Report | ||
</div> | ||
<div class="panel-body"> | ||
<span>No matches.</span> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<span>No matches.</span> | ||
|
||
<!-- 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"> | ||
<dl class="dl-horizontal" ng-if="content.errorMessage"> | ||
<dt><i class="fa fa-warning"></i> AbuseIPDB:</dt> | ||
<dd class="wrap">{{content.errorMessage}}</dd> | ||
</dl> | ||
</div> | ||
</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"> | ||
<dl class="dl-horizontal" ng-if="content.errorMessage"> | ||
<dt><i class="fa fa-warning"></i> AbuseIPDB:</dt> | ||
<dd class="wrap">{{content.errorMessage}}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
|