2013-11-27 07:29:31 +00:00
|
|
|
<div class="logs-view-element">
|
2013-12-09 22:28:23 +00:00
|
|
|
|
2015-02-18 00:37:37 +00:00
|
|
|
<div class="header">
|
2013-12-09 22:28:23 +00:00
|
|
|
<span class="header-text">
|
|
|
|
<span ng-show="!performer">Usage Logs</span>
|
2014-09-29 18:08:16 +00:00
|
|
|
<span class="entity-reference" entity="performer" ng-show="performer"></span>
|
2013-12-09 22:28:23 +00:00
|
|
|
<span id="logs-range" class="mini">
|
2013-12-09 22:30:26 +00:00
|
|
|
From
|
2014-03-25 23:39:56 +00:00
|
|
|
<input type="text" class="logs-date-picker input-sm" name="start" ng-model="logStartDate" data-max-date="{{ logEndDate }}" data-container="body" bs-datepicker/>
|
2013-12-09 22:28:23 +00:00
|
|
|
<span class="add-on">to</span>
|
2014-03-25 23:39:56 +00:00
|
|
|
<input type="text" class="logs-date-picker input-sm" name="end" ng-model="logEndDate" data-min-date="{{ logStartDate }}" 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' : ''"
|
2014-04-11 22:21:13 +00:00
|
|
|
ng-click="toggleChart()" data-title="Toggle Chart" bs-tooltip="tooltip.title"></i>
|
2013-12-09 22:28:23 +00:00
|
|
|
<a href="{{ logsPath }}" download="usage-log.json" target="_new">
|
2014-04-11 22:21:13 +00:00
|
|
|
<i class="fa fa-download toggle-icon" data-title="Download Logs" bs-tooltip="tooltip.title"></i>
|
2013-12-09 22:28:23 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2015-02-18 00:37:37 +00:00
|
|
|
<div class="cor-loader-inline" ng-show="loading"></div>
|
2014-11-24 21:07:38 +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>
|
|
|
|
|
2014-11-24 21:07:38 +00:00
|
|
|
<div class="side-controls">
|
2013-11-27 07:29:31 +00:00
|
|
|
<div class="result-count">
|
|
|
|
Showing {{(logs | visibleLogFilter:kindsAllowed | filter:search | limitTo:150).length}} of
|
|
|
|
{{(logs | visibleLogFilter:kindsAllowed | filter:search).length}} matching logs
|
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
<div class="filter-input">
|
2013-11-27 07:29:31 +00:00
|
|
|
<input id="log-filter" class="form-control" placeholder="Filter Logs" type="text" ng-model="search.$">
|
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
</div>
|
|
|
|
|
2014-08-12 18:30:59 +00:00
|
|
|
<div class="table-container">
|
2013-11-27 07:29:31 +00:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<th>Description</th>
|
2014-01-21 22:04:00 +00:00
|
|
|
<th style="min-width: 226px">Date/Time</th>
|
2014-03-18 20:45:18 +00:00
|
|
|
<th>User/Token/App</th>
|
2013-11-27 07:29:31 +00:00
|
|
|
</thead>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2013-11-27 07:29:31 +00:00
|
|
|
<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>
|
2014-11-24 21:07:38 +00:00
|
|
|
<span class="log-performer" ng-if="log.metadata.oauth_token_application">
|
2014-03-18 20:45:18 +00:00
|
|
|
<div>
|
2015-02-17 17:35:16 +00:00
|
|
|
<span class="application-reference"
|
|
|
|
data-title="log.metadata.oauth_token_application"
|
2014-03-18 20:45:18 +00:00
|
|
|
client-id="log.metadata.oauth_token_application_id"></span>
|
|
|
|
</div>
|
|
|
|
<div style="text-align: center; font-size: 12px; color: #aaa; padding: 4px;">on behalf of</div>
|
|
|
|
<div>
|
|
|
|
<span class="entity-reference" entity="log.performer" namespace="organization.name"></span>
|
|
|
|
</div>
|
|
|
|
</span>
|
2014-11-24 21:07:38 +00:00
|
|
|
<span class="log-performer" ng-if="!log.metadata.oauth_token_application && 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>
|
2014-03-18 20:45:18 +00:00
|
|
|
<span class="log-performer" ng-if="!log.performer && log.metadata.token">
|
2013-12-02 18:56:27 +00:00
|
|
|
<i class="fa fa-key"></i>
|
|
|
|
<span>{{ log.metadata.token }}</span>
|
|
|
|
</span>
|
2014-03-18 20:45:18 +00:00
|
|
|
<span ng-if="!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>
|
2014-08-12 18:30:59 +00:00
|
|
|
</div>
|
2013-11-27 07:29:31 +00:00
|
|
|
</div>
|
|
|
|
</div>
|