Skip to content

Commit

Permalink
#41 #31 fix typo and update long report to a table with list name and…
Browse files Browse the repository at this point in the history
… last update
  • Loading branch information
jeromeleonard committed May 22, 2017
1 parent cdae768 commit f8bc24f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
39 changes: 27 additions & 12 deletions thehive-templates/FireholBlocklists_0_1/long.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,46 @@

<div class="panel panel-info" ng-if="content.count > 0">
<div class="panel-heading">

<div class="panel-heading">
Firehol IP Report (https://github.com/firehol/blocklist-ipsets)
</div>
<div class="panel-body">
<dl class="dl-horizontal" ng-repeat="h in content.hits">
<dt>
Match <a href="http://iplists.firehol.org/?ipset={{h.list}}">{{h.list}}</a>:
</dt>
<dd>
<p style="white-space: pre-line;">{{h.description}}</p>
</dd>
</dl>

<table class="table" ng-if="content.hits">
<thead>
<th>List name</th>
<th>Last updated</th>
<th>Description</th>
</thead>
<tbody ng-repeat="h in content.hits | orderBy:'-file_date'">
<tr>
<td>{{h.list}}</td>
<td>{{h.file_date}}</td>
<td>
<a target="_blank" href="http://iplists.firehol.org/?ipset={{h.list}}">http://iplists.firehol.org/?ipset={{h.list}}</a>
</td>

</tr>
</tbody>
</table>
</div>
</div>

<div class="panel panel-success" ng-if="content.count == 0 && success">
<div class="panel-heading">
Firehol IP Report (https://github.com/firehol/blocklist-ipsets): <b>No matches</b>
Firehol IP Report (https://github.com/firehol/blocklist-ipsets): <b>No match found</b>
</div>
</div>

<!-- on error -->
<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
Firehol IP Report (https://github.com/firehol/blocklist-ipsets) <b>Error</b>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Error: </dt>
<dd>{{content.error}}</dd>
<dd>{{content.errorMessage}}</dd>
</dl>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions thehive-templates/FireholBlocklists_0_1/short.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<span ng-if="content.count == 0" class="label label-success">Firehol: No matches</span>&nbsp;
<span ng-if="content.count > 0" class="label label-danger">Firehol: {{content.count}} matches</span>&nbsp;
<span ng-if="content.count == 0" class="label label-success">Firehol: No match</span>&nbsp;
<span ng-if="content.count > 0" class="label label-danger">Firehol: {{content.count}} match(es)</span>&nbsp;
<div style="display:inline-block;" ng-repeat="h in content.hits">
<a href="http://iplists.firehol.org/?ipset={{h}}"><span class="label label-danger">Firehol: {{h}}</span></a>&nbsp;
</div>

0 comments on commit f8bc24f

Please sign in to comment.