Files
cloudron-box/webadmin/src/views/activity.html

48 lines
2.0 KiB
HTML
Raw Normal View History

2016-04-30 18:57:55 -07:00
<br/>
<div class="row">
2016-05-06 17:18:47 +02:00
<div class="col-md-10 col-md-offset-1">
<h1>Activity Log</h1>
</div>
</div>
2016-05-02 11:36:20 -07:00
2016-05-06 17:18:47 +02:00
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="filter">
<input type="text" class="form-control" ng-model="search" ng-model-options="{ debounce: 1000 }" ng-change="updateFilter()" placeholder="Search"/>
<select class="form-control" ng-model="action" ng-options="a.name for a in actions" ng-change="updateFilter()">
<option value="">-- all actions --</option>
</select>
</div>
<div class="pagination pull-right">
2016-05-02 11:36:20 -07:00
<button class="btn btn-default btn-outline" ng-click="showPrevPage()" ng-disabled="busy || currentPage <= 1"><i class="fa fa-angle-double-left"></i> prev</button>
<button class="btn btn-default btn-outline" ng-click="showNextPage()" ng-disabled="busy || pageItems > eventLogs.length">next <i class="fa fa-angle-double-right"></i></button>
2016-05-06 17:18:47 +02:00
</div>
2016-05-02 11:36:20 -07:00
</div>
2016-04-30 18:57:55 -07:00
</div>
<div class="row">
2016-05-02 11:36:20 -07:00
<div class="col-md-10 col-md-offset-1">
2016-04-30 18:57:55 -07:00
<div class="card card-block" style="max-width: 100%">
2016-05-06 17:23:39 +02:00
<center ng-show="busy"><h2><i class="fa fa-spinner fa-pulse"></i></h2></center>
<table ng-hide="busy" class="table table-striped table-condensed table-hover">
2016-04-30 18:57:55 -07:00
<thead>
<tr>
2016-04-30 19:49:50 -07:00
<th class="col-md-2">Time</th>
<th class="col-md-2">Source</th>
<th class="col-md-6">Action</th>
2016-04-30 18:57:55 -07:00
</tr>
</thead>
<tbody>
<tr ng-repeat="eventLog in eventLogs">
2016-04-30 19:49:50 -07:00
<th scope="row">{{ eventLog.creationTime | prettyDate }}</td>
2016-05-02 10:33:29 -07:00
<td>{{ eventLog.source.username || eventLog.source.userId || eventLog.source.authType }} <span ng-show="eventLog.source.ip || eventLog.source.appId"> ({{ eventLog.source.ip || eventLog.source.appId }}) </span> </td>
2016-04-30 19:49:50 -07:00
<td>{{ eventLog | eventLogDetails }}</td>
2016-04-30 18:57:55 -07:00
</tr>
</tbody>
</table>
</div>
</div>
</div>