File tree 1 file changed +9
-6
lines changed
pkg/enqueue-bundle/Resources/views/Profiler
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 33
33
<thead >
34
34
<tr >
35
35
<th >#</th >
36
- <th >Type </th >
37
- <th >Destination </th >
36
+ <th >Topic </th >
37
+ <th >Command </th >
38
38
<th >Message</th >
39
39
<th >Priority</th >
40
40
</tr >
43
43
{% for sentMessage in collector .sentMessages %}
44
44
<tr >
45
45
<td >{{ loop .index }}</td >
46
- <td >{% if sentMessage .command | default (null ) %}Event{% else %}Command{% endif % }</td >
47
- <td >{% if sentMessage .command | default (null ) %}{{ sentMessage . command }}{% else %}{{ sentMessage . topic }}{% endif % }</td >
46
+ <td >{{ sentMessage .topic | default (null ) } }</td >
47
+ <td >{{ sentMessage .command | default (null ) } }</td >
48
48
<td style =" width: 70%" >
49
49
<span class =" metadata" >
50
50
<span >
51
51
{{ collector.ensureString (sentMessage .body )[0:40 ] }}{% if collector.ensureString (sentMessage .body )[0:40 ] != collector.ensureString (sentMessage .body ) %}...{% endif %}
52
52
</span >
53
- <a class =" btn btn-link text-small sf-toggle" data-toggle-selector =" #message-body-{{ loop .index }}" data-toggle-alt-content =" Hide trace" >Show trace</a >
54
53
55
- <div id =" message-body-{{ loop .index }}" class =" context sf-toggle-content sf-toggle-hidden" >
54
+ {% if collector.ensureString (sentMessage .body )| length > 40 %}
55
+ <a class =" btn btn-link text-small sf-toggle" data-toggle-selector =" #message-body-{{ loop .index }}" data-toggle-alt-content =" Hide body" >Show body</a >
56
+
57
+ <div id =" message-body-{{ loop .index }}" class =" context sf-toggle-content sf-toggle-hidden" >
56
58
{{ profiler_dump(sentMessage .body ) }}
57
59
</div >
60
+ {% endif %}
58
61
</span >
59
62
<td >
60
63
<span title =" {{ sentMessage .priority }}" >{{ collector.prettyPrintPriority (sentMessage .priority ) }}</span >
You can’t perform that action at this time.
0 commit comments