Skip to content

Commit

Permalink
#224 Better feedback for analyzed observables in datalist
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 22, 2017
1 parent 07bf3f1 commit f4ae4a3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ui/app/views/partials/observables/list/artifacts-list-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +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: 200px">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 @@ -77,7 +77,14 @@ <h4>List of observables ({{artifacts.total || 0}} of {{artifactStats.count}})</h
</div>
</td>
<td>
<ng-pluralize count="keys(artifact.reports).length" when="{'0': 'No reports available', 'one': '1 report available', 'other': '{} reports available'}"></ng-pluralize>
<div ng-show="keys(artifact.reports).length === 0" class="text-muted">
<em>No reports available</em>
</div>
<div ng-show="keys(artifact.reports).length > 0">
<span class="badge">{{keys(artifact.reports).length}}</span>
<ng-pluralize count="keys(artifact.reports).length" when="{'one': 'report available', 'other': 'reports available'}"></ng-pluralize>
</div>

</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>
Expand Down

0 comments on commit f4ae4a3

Please sign in to comment.