Skip to content

Commit

Permalink
#41 manage error in Yara long report templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed May 7, 2017
1 parent 1e67f21 commit 8844e1b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions thehive-templates/Yara_0_1/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,26 @@
<dt>Matches</dt>
<dd ng-repeat="m in content.results">{{m}}</dd>
</dl>
</div>
</div>
</div>
<div class="panel panel-success" ng-if="success && content.results.length == 0">
<div class="panel-heading">
Yara Report
</div>
<div class="panel-body">
<span>No matches.</span>
</div>
</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> Yara: </dt>
<dd class="wrap">{{content.errorMessage}}</dd>
</dl>
</div>
</div>

0 comments on commit 8844e1b

Please sign in to comment.