Skip to content

Commit

Permalink
#1062 Display all similar observables in observable details page
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani authored and To-om committed Apr 6, 2020
1 parent a0da8e3 commit 40bb7d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ui/app/scripts/controllers/case/CaseObservablesItemCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@
};

$scope.similarArtifacts = CaseArtifactSrv.api().similar({
'artifactId': observableId
artifactId: observableId,
range: 'all',
sort: ['-startDate']
});


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h4 class="vpad10 text-primary">
<div class="col-md-5">
<h4 class="vpad10 text-primary">Links</h4>
<strong>Observable seen in {{similarArtifacts.length}} other case(s)</strong>
<table ng-if="similarArtifacts.length > 0" class="table table-hover">
<table ng-if="similarArtifacts.length > 0" class="table table-striped">
<thead>
<tr>
<th width="10">IOC</th>
Expand All @@ -108,9 +108,11 @@ <h4 class="vpad10 text-primary">Links</h4>
<td>
<tlp value="a.tlp"></tlp>
</td>
<td>[{{a.dataType}}]: {{a.data || a.attachment.name}}<br> #{{a.case.caseId}} - {{a.case.title}}
<td>
<!-- [{{a.dataType}}]: {{a.data || a.attachment.name}}<br> -->
#{{a.case.caseId}} - {{a.case.title}}
</td>
<td>{{a.startDate | showDate}}</td>
<td>{{a.startDate | shortDate}}</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 40bb7d3

Please sign in to comment.