diff --git a/webadmin/src/theme.scss b/webadmin/src/theme.scss index 0a1f1de53..1ee83a957 100644 --- a/webadmin/src/theme.scss +++ b/webadmin/src/theme.scss @@ -1079,6 +1079,11 @@ footer { } } +.eventlog-details { + white-space: pre-wrap; + background-color: white; +} + // ---------------------------- // Tag Input // ---------------------------- diff --git a/webadmin/src/views/activity.html b/webadmin/src/views/activity.html index 2424fe012..d82438cc8 100644 --- a/webadmin/src/views/activity.html +++ b/webadmin/src/views/activity.html @@ -29,17 +29,22 @@ - + - + + - - + + + + + +
TimeTime SourceActionActionDetails
{{ eventLog.creationTime | prettyDate }} {{ eventLog.source.username || eventLog.source.userId || eventLog.source.authType }} ({{ eventLog.source.ip || eventLog.source.appId }}) {{ eventLog | eventLogAction }}
{{ eventLog.data | json }}
diff --git a/webadmin/src/views/activity.js b/webadmin/src/views/activity.js index e095fed53..8120baa96 100644 --- a/webadmin/src/views/activity.js +++ b/webadmin/src/views/activity.js @@ -4,7 +4,8 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca $scope.config = Client.getConfig(); $scope.busy = false; - $scope.eventLogs = [ ]; + $scope.eventLogs = []; + $scope.activeEventLog = null; // TODO sync this with the eventlog filter $scope.actions = [ @@ -70,6 +71,11 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca fetchEventLogs(); }; + $scope.showEventLogDetails = function (eventLog) { + if ($scope.activeEventLog === eventLog) $scope.activeEventLog = null; + else $scope.activeEventLog = eventLog; + }; + Client.onReady(function () { fetchEventLogs(); });