bug #30078 [Messenger] Fix DataCollector template (ottaviano)

This PR was merged into the 4.2 branch.

Discussion
----------

[Messenger] Fix DataCollector template

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

It's for adding a closing DIV tag on L96 (+ re-indent the HTML code)

Commits
-------

146ae74fac [Messenger] Fix DataCollector template
This commit is contained in:
Nicolas Grekas 2019-02-07 08:55:22 +01:00
commit 2d66fe7d5c

View File

@ -30,7 +30,7 @@
{% endblock %} {% endblock %}
{% block menu %} {% block menu %}
<span class="label{{ collector.exceptionsCount ? ' label-status-error' }}{{ collector.messages is empty ? ' disabled' }}"> <span class="label{{ collector.exceptionsCount ? ' label-status-error' }}{{ collector.messages is empty ? ' disabled' }}">
<span class="icon">{{ include('@WebProfiler/Icon/messenger.svg') }}</span> <span class="icon">{{ include('@WebProfiler/Icon/messenger.svg') }}</span>
<strong>Messages</strong> <strong>Messages</strong>
{% if collector.exceptionsCount > 0 %} {% if collector.exceptionsCount > 0 %}
@ -38,7 +38,7 @@
<span>{{ collector.exceptionsCount }}</span> <span>{{ collector.exceptionsCount }}</span>
</span> </span>
{% endif %} {% endif %}
</span> </span>
{% endblock %} {% endblock %}
{% block head %} {% block head %}
@ -71,7 +71,6 @@
<p>No messages have been collected.</p> <p>No messages have been collected.</p>
</div> </div>
{% else %} {% else %}
<div class="sf-tabs message-bus"> <div class="sf-tabs message-bus">
<div class="tab"> <div class="tab">
{% set messages = collector.messages %} {% set messages = collector.messages %}
@ -96,6 +95,7 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
</div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}