{% extends '@WebProfiler/Profiler/layout.html.twig' %}

{% block toolbar %}
{% endblock %}

{% block menu %}
    <span class="label {{ not collector.sentMessages ? 'disabled' }}">
        <strong>Message Queue</strong>
    </span>
{% endblock %}

{% block panel %}
    <h2>Sent messages</h2>
    <table>
        <thead>
            <tr>
                <th>#</th>
                <th>Topic</th>
                <th>Message</th>
                <th>Priority</th>
            </tr>
        </thead>
        <tbody>
            {% for sentMessage in collector.sentMessages %}
                <tr>
                    <td>{{ loop.index }}</td>
                    <td>{{ sentMessage.topic }}</td>
                    <td style="width: 70%">
                        <span class="metadata">
                            <span>{{ sentMessage.body[0:40] }}... </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>

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

    </table>
{% endblock %}

{% extends '@WebProfiler/Profiler/layout.html.twig' %}

{% block toolbar %}
{% endblock %}

{% block menu %}
    <span class="label {{ not collector.sentMessages ? 'disabled' }}">
        <strong>Message Queue</strong>
    </span>
{% endblock %}

{% block panel %}
    <h2>Sent messages</h2>
    <table>
        <thead>
            <tr>
                <th>#</th>
                <th>Topic</th>
                <th>Message</th>
                <th>Priority</th>
            </tr>
        </thead>
        <tbody>
            {% for sentMessage in collector.sentMessages %}
                <tr>
                    <td>{{ loop.index }}</td>
                    <td>{{ sentMessage.topic }}</td>
                    <td style="width: 70%">
                        <span class="metadata">
                            <span>{{ sentMessage.body[0:40] }}... </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>

                            <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>
                </tr>
            {% endfor %}
        </tbody>

    </table>
{% endblock %}

Remove maxDepth option on profiler dump.
Remove maxDepth option on profiler dump.

MaxDepth was introduced in Symfony 3.2 so to maintain 2.8 compatibility
we should remove this option.

Fixes: #158
