File tree 1 file changed +17
-10
lines changed
pkg/enqueue-bundle/Resources/views/Profiler
1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change 34
34
<tr >
35
35
<th >#</th >
36
36
<th >Topic</th >
37
+ <th >Command</th >
37
38
<th >Message</th >
38
39
<th >Priority</th >
39
40
</tr >
42
43
{% for sentMessage in collector .sentMessages %}
43
44
<tr >
44
45
<td >{{ loop .index }}</td >
45
- <td >{{ sentMessage .topic }}</td >
46
+ <td >{{ sentMessage .topic | default (null ) }}</td >
47
+ <td >{{ sentMessage .command | default (null ) }}</td >
46
48
<td style =" width: 70%" >
47
- <span class =" metadata" >
48
- <span >
49
- {{ collector.ensureString (sentMessage .body )[0:40 ] }}{% if collector.ensureString (sentMessage .body )[0:40 ] != collector.ensureString (sentMessage .body ) %}...{% endif %}
50
- </span >
51
- <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 >
49
+ <span class =" metadata" >
50
+ <span >
51
+ {{ collector.ensureString (sentMessage .body )[0:40 ] }}{% if collector.ensureString (sentMessage .body )[0:40 ] != collector.ensureString (sentMessage .body ) %}...{% endif %}
52
+ </span >
53
+
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 >
52
56
53
57
<div id =" message-body-{{ loop .index }}" class =" context sf-toggle-content sf-toggle-hidden" >
54
- {{ profiler_dump(sentMessage .body ) }}
55
- </div >
56
- </span >
57
- <td ><span title =" {{ sentMessage .priority }}" >{{ collector.prettyPrintPriority (sentMessage .priority ) }}</span ></td >
58
+ {{ profiler_dump(sentMessage .body ) }}
59
+ </div >
60
+ {% endif %}
61
+ </span >
62
+ <td >
63
+ <span title =" {{ sentMessage .priority }}" >{{ collector.prettyPrintPriority (sentMessage .priority ) }}</span >
64
+ </td >
58
65
</tr >
59
66
{% endfor %}
60
67
</tbody >
You can’t perform that action at this time.
0 commit comments