@@ -5,17 +5,19 @@ var eventPane = (function() {
55 var fixedFields = [ 'host' , 'service' , 'time' , 'state' , 'metric' , 'ttl' , 'description' , 'tags' ] ;
66 var fixedTemplate =
77 _ . template (
8- '<div class="host">{{-host}}</div>' +
9- '<div class="service">{{-service}}</div>' +
10- '<div class="state {{-state}}">{{-state}}</div>' +
11- '<div class="metric">{{-metric}}</div>' +
8+ '<div>' +
9+ '<span class="host">{{-host}}</span>' +
10+ '<span class="service">{{-service}}</span>' +
11+ '<span class="state {{-state}}">{{-state}}</span>' +
12+ '<span class="metric">{{-metric}}</span>' +
1213 '<time class="absolute">{{-time}}</time>' +
13- '<div class="ttl">{{-ttl}}</div>' +
14- '<div class="tags">{{-tags}}</div>' +
15- '<div class="description">{{-description}}</description>' ) ;
14+ '<span class="ttl">{{-ttl}}</span>' +
15+ '<span class="tags">{{-tags}}</span>' +
16+ '</div>' +
17+ '<pre class="description">{{-description}}</pre>' ) ;
1618
1719 var rowTemplate =
18- _ . template ( " <tr><td>{{-field}}</td><td>{{-value}}</td></tr>" ) ;
20+ _ . template ( ' <tr><td class="field-name" >{{-field}}</td><td>{{-value}}</td></tr>' ) ;
1921
2022 // Hide the pane
2123 var hide = function ( ) {
@@ -45,14 +47,18 @@ var eventPane = (function() {
4547 tags : "nil" ,
4648 description : "nil" } ) ) ) ;
4749
48- var table = el . append ( '<table></table>' ) ;
50+ var table = '<table>'
4951
5052 // Remaining fields
5153 _ . each ( event , function ( value , field ) {
5254 if ( ! _ . contains ( fixedFields , field ) ) {
53- table . append ( rowTemplate ( { field : field , value : value } ) ) ;
55+ table += rowTemplate ( { field : field , value : value } ) ;
5456 }
5557 } ) ;
58+
59+ table += '</table>' ;
60+
61+ el . append ( table ) ;
5662 } ;
5763
5864 // Hide on escape.
0 commit comments