Merge "Add time column in events page"

This commit is contained in:
Jenkins 2015-07-09 14:40:33 +00:00 committed by Gerrit Code Review
commit 5a1d1eb218
4 changed files with 19 additions and 2 deletions

View File

@ -274,13 +274,15 @@
"Event type",
"Output",
"Host name",
"Service"
"Service",
"Time"
],
"name": [
"status_event_event_type",
"status_event_output",
"status_event_host_name",
"status_event_service"
"status_event_service",
"status_event_time"
]
},
"inputSource": {

View File

@ -0,0 +1,3 @@
<td class="data-table__time">
<time class="data-table__data">{{entry.time}}</time>
</td>

View File

@ -0,0 +1,11 @@
'use strict';
angular.module('bansho.table.cell_status_event_time', ['bansho.table'])
.controller('CellStatusEventTime', [function () {
angular.noop();
}])
.run(['tableGlobalConfig', function (tableGlobalConfig) {
tableGlobalConfig.cellToFieldsMap.status_time = ['time'];
}]);

View File

@ -74,6 +74,7 @@
<script src="components/table/cell_status_event_output/cell_status_event_output.js"></script>
<script src="components/table/cell_status_event_host_name/cell_status_event_host_name.js"></script>
<script src="components/table/cell_status_event_service/cell_status_event_service.js"></script>
<script src="components/table/cell_status_event_time/cell_status_event_time.js"></script>
<script src="components/table/cell_status_host/cell_status_host.js"></script>
<script src="components/table/cell_status_last_check/cell_status_last_check.js"></script>