2013-11-27 07:29:31 +00:00
|
|
|
<div class="logs-view-element">
|
2013-12-09 22:28:23 +00:00
|
|
|
|
|
|
|
<div class="container header">
|
|
|
|
<span class="header-text">
|
|
|
|
<span ng-show="!performer">Usage Logs</span>
|
|
|
|
<span class="entity-reference" name="performer.username" isrobot="performer.is_robot" ng-show="performer"></span>
|
|
|
|
<span id="logs-range" class="mini">
|
2013-12-09 22:30:26 +00:00
|
|
|
From
|
2014-01-10 02:20:31 +00:00
|
|
|
<input type="text" class="logs-date-picker input-sm" name="start" ng-model="logStartDate" data-date-format="mm/dd/yyyy" bs-datepicker/>
|
2013-12-09 22:28:23 +00:00
|
|
|
<span class="add-on">to</span>
|
2014-01-10 02:20:31 +00:00
|
|
|
<input type="text" class="logs-date-picker input-sm" name="end" ng-model="logEndDate" data-date-format="mm/dd/yyyy" bs-datepicker/>
|
2013-12-09 22:28:23 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="right">
|
|
|
|
<i class="fa fa-bar-chart-o toggle-icon" ng-class="chartVisible ? 'active' : ''"
|
|
|
|
ng-click="toggleChart()" title="Toggle Chart" bs-tooltip="tooltip.title"></i>
|
|
|
|
<a href="{{ logsPath }}" download="usage-log.json" target="_new">
|
|
|
|
<i class="fa fa-download toggle-icon" title="Download Logs" bs-tooltip="tooltip.title"></i>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2013-11-27 07:29:31 +00:00
|
|
|
<div ng-show="loading">
|
2013-12-18 03:56:28 +00:00
|
|
|
<div class="quay-spinner 3x"></div>
|
2013-11-27 07:29:31 +00:00
|
|
|
</div>
|
2013-12-09 22:28:23 +00:00
|
|
|
<div ng-show="!loading">
|
2013-11-27 07:29:31 +00:00
|
|
|
<div id="bar-chart" style="width: 800px; height: 500px;" ng-show="chartVisible">
|
|
|
|
<svg style="width: 800px; height: 500px;"></svg>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="side-controls">
|
|
|
|
<div class="result-count">
|
|
|
|
Showing {{(logs | visibleLogFilter:kindsAllowed | filter:search | limitTo:150).length}} of
|
|
|
|
{{(logs | visibleLogFilter:kindsAllowed | filter:search).length}} matching logs
|
|
|
|
</div>
|
|
|
|
<div class="filter-input">
|
|
|
|
<input id="log-filter" class="form-control" placeholder="Filter Logs" type="text" ng-model="search.$">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<th>Description</th>
|
2014-01-21 22:04:00 +00:00
|
|
|
<th style="min-width: 226px">Date/Time</th>
|
2013-12-02 19:05:19 +00:00
|
|
|
<th>User/Token</th>
|
2013-11-27 07:29:31 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<tr class="log" ng-repeat="log in (logs | visibleLogFilter:kindsAllowed | filter:search | limitTo:150)">
|
|
|
|
<td>
|
|
|
|
<span class="circle" style="{{ 'background: ' + getColor(log.kind) }}"></span>
|
2014-01-21 22:04:00 +00:00
|
|
|
<span class="log-description" ng-bind-html="getDescription(log)"></span>
|
2013-11-27 07:29:31 +00:00
|
|
|
</td>
|
|
|
|
<td>{{ log.datetime }}</td>
|
|
|
|
<td>
|
2013-12-02 18:51:42 +00:00
|
|
|
<span ng-show="log.performer">
|
2014-01-21 21:23:00 +00:00
|
|
|
<span class="entity-reference" entity="log.performer" namespace="organization.name"></span>
|
2013-12-02 18:51:42 +00:00
|
|
|
</span>
|
2013-12-02 18:56:27 +00:00
|
|
|
<span ng-show="!log.performer && log.metadata.token">
|
|
|
|
<i class="fa fa-key"></i>
|
|
|
|
<span>{{ log.metadata.token }}</span>
|
|
|
|
</span>
|
|
|
|
<span ng-show="!log.performer && !log.metadata.token">
|
2013-12-02 18:51:42 +00:00
|
|
|
(anonymous)
|
|
|
|
</span>
|
2013-11-27 07:29:31 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|