File tree 1 file changed +14
-13
lines changed
pkg/enqueue-bundle/Resources/views/Profiler
1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change 45
45
<td >{{ loop .index }}</td >
46
46
<td >{{ sentMessage .topic | default (null ) }}</td >
47
47
<td >{{ sentMessage .command | default (null ) }}</td >
48
- <td style =" width: 70%" >
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 >
56
-
57
- <div id =" message-body-{{ loop .index }}" class =" context sf-toggle-content sf-toggle-hidden" >
58
- {{ profiler_dump(sentMessage .body ) }}
59
- </div >
60
- {% endif %}
48
+ <td style =" width: 70%" class =" metadata" >
49
+ <span >
50
+ {% set body = collector.ensureString (sentMessage .body ) %}
51
+ {{ body | length > 40 ? body | slice (0 , 40 ) ~ ' ...' : body }}
61
52
</span >
53
+ {% if body | length > 40 %}
54
+ <a class =" btn btn-link text-small sf-toggle"
55
+ data-toggle-selector =" #message-body-{{ loop .index }}"
56
+ data-toggle-alt-content =" Hide body"
57
+ >Show body</a >
58
+ <div id =" message-body-{{ loop .index }}"
59
+ class =" context sf-toggle-content sf-toggle-hidden" >
60
+ <pre >{{ body }}</pre >
61
+ </div >
62
+ {% endif %}
62
63
<td >
63
64
<span title =" {{ sentMessage .priority }}" >{{ collector.prettyPrintPriority (sentMessage .priority ) }}</span >
64
65
</td >
You can’t perform that action at this time.
0 commit comments