Skip to content

[symfony] Print command name #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@
<tr>
<th>#</th>
<th>Topic</th>
<th>Command</th>
<th>Message</th>
<th>Priority</th>
</tr>
@@ -42,19 +43,25 @@
{% for sentMessage in collector.sentMessages %}
<tr>
<td>{{ loop.index }}</td>
<td>{{ sentMessage.topic }}</td>
<td>{{ sentMessage.topic|default(null) }}</td>
<td>{{ sentMessage.command|default(null) }}</td>
<td style="width: 70%">
<span class="metadata">
<span>
{{ collector.ensureString(sentMessage.body)[0:40] }}{% if collector.ensureString(sentMessage.body)[0:40] != collector.ensureString(sentMessage.body) %}...{% endif %}
</span>
<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>
<span class="metadata">
<span>
{{ collector.ensureString(sentMessage.body)[0:40] }}{% if collector.ensureString(sentMessage.body)[0:40] != collector.ensureString(sentMessage.body) %}...{% endif %}
</span>

{% if collector.ensureString(sentMessage.body)|length > 40 %}
<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>

<div id="message-body-{{ loop.index }}" class="context sf-toggle-content sf-toggle-hidden">
{{ profiler_dump(sentMessage.body) }}
</div>
</span>
<td><span title="{{ sentMessage.priority }}">{{ collector.prettyPrintPriority(sentMessage.priority) }}</span></td>
{{ profiler_dump(sentMessage.body) }}
</div>
{% endif %}
</span>
<td>
<span title="{{ sentMessage.priority }}">{{ collector.prettyPrintPriority(sentMessage.priority) }}</span>
</td>
</tr>
{% endfor %}
</tbody>