better text for action
This commit is contained in:
@@ -15,18 +15,16 @@
|
||||
<table class="table table-striped table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-1">Time</th>
|
||||
<th class="col-md-1">Action</th>
|
||||
<th class="col-md-1">Source</th>
|
||||
<th class="col-md-5">Details</th>
|
||||
<th class="col-md-2">Time</th>
|
||||
<th class="col-md-2">Source</th>
|
||||
<th class="col-md-6">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="eventLog in eventLogs">
|
||||
<td>{{ eventLog.creationTime | prettyDate }}</td>
|
||||
<th scope="row">{{ eventLog.action }}</td>
|
||||
<th scope="row">{{ eventLog.creationTime | prettyDate }}</td>
|
||||
<td>{{ eventLog.source.username }} ({{ eventLog.source.ip }})</td>
|
||||
<td>{{ eventLog.details }}</td>
|
||||
<td>{{ eventLog | eventLogDetails }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -10,9 +10,6 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca
|
||||
if (error) return console.error(error);
|
||||
|
||||
$scope.eventLogs = eventLogs;
|
||||
$scope.eventLogs.forEach(function (e) {
|
||||
e.details = Object.keys(e.data).map(function (k) { return k + ':' + e.data[k]; }).join(' ');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user