better text for action

This commit is contained in:
Girish Ramakrishnan
2016-04-30 19:49:50 -07:00
parent 5c2a650681
commit fd1a00d280
4 changed files with 46 additions and 10 deletions

View File

@@ -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>

View File

@@ -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(' ');
});
});
}