Skip to content

Commit

Permalink
#211 Add “Analysis” column to observables list
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 17, 2017
1 parent eb3020d commit 083140b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ui/app/scripts/controllers/case/CaseObservablesCtrl.js
Expand Up @@ -46,6 +46,10 @@
$scope.uiSrv.setPageSize(newValue);
});

$scope.keys = function(obj) {
return _.keys(obj || {});
};

$scope.toggleStats = function () {
$scope.uiSrv.toggleStats();
};
Expand Down
4 changes: 2 additions & 2 deletions ui/app/views/partials/alert/event.dialog.html
Expand Up @@ -36,9 +36,9 @@ <h4 class="vpad10 text-primary">
<dl class="dl-horizontal clear">
<dt>Tags</dt>
<dd>
<div class="flexwrap mt-xxs">
<div class="flexwrap mt-xxs">
<strong class="text-muted mr-xxxs" ng-if="!dialog.event.tags || dialog.event.tags === 0">None</strong>
<span ng-repeat="tag in dialog.event.tags track by $index" class="label label-primary mb-xxxs mr-xxxs pointer">{{tag}}</span>
<span ng-repeat="tag in dialog.event.tags track by $index" class="label label-primary mb-xxxs mr-xxxs">{{tag}}</span>
</div>
</dd>
</dl>
Expand Down
Expand Up @@ -43,6 +43,7 @@ <h4>List of observables ({{artifacts.total || 0}} of {{artifactStats.count}})</h
<th style="width: 15px"></th>
<th style="width: 100px">Type <a href ng-click="artifacts.sort='-dataType'; artifacts.update()"><i class="fa fa-caret-up"></i></a><a href ng-click="artifacts.sort='+dataType'; artifacts.update()"><i class="fa fa-caret-down"></i></a></th>
<th>Data/Filename <a href ng-click="artifacts.sort='-data'; artifacts.update()"><i class="fa fa-caret-up"></i></a><a href ng-click="artifacts.sort='+data'; artifacts.update()"><i class="fa fa-caret-down"></i></a></th>
<th style="width: 400px">Analysis</th>
<th style="width: 120px">Date added <a href ng-click="artifacts.sort='-startDate'; artifacts.update()"><i class="fa fa-caret-up"></i></a><a href ng-click="artifacts.sort='+startDate'; artifacts.update()"><i class="fa fa-caret-down"></i></a></th>
</tr>
</thead>
Expand Down Expand Up @@ -75,6 +76,9 @@ <h4>List of observables ({{artifacts.total || 0}} of {{artifactStats.count}})</h
</span>
</div>
</td>
<td>
<ng-pluralize count="keys(artifact.reports).length" when="{'0': 'No reports available', 'one': '1 report available', 'other': '{} reports available'}"></ng-pluralize>
</td>
<td>
<a href ng-click="addFilterValue('startDate', artifact.startDate)"><span uib-tooltip="{{artifact.startDate | showDate}}" tooltip-popup-delay="500" tooltip-placement="bottom">{{artifact.startDate | shortDate}}</span></a>
</td>
Expand Down

0 comments on commit 083140b

Please sign in to comment.