Merge remote branch 'vicb/profiler_log'

* vicb/profiler_log:
  [WebProfilerBundle] Always use the default background color for counters
  [WebProfilerBundle] The total number of log entries is not relevant, display only the number of errors when required
  [WebProfilerBundle] Display the number of log entries together with the number of errors
This commit is contained in:
Fabien Potencier 2011-03-09 17:30:07 +01:00
commit c41e16293b

View File

@ -11,9 +11,11 @@
<span class="label">
<span class="icon"><img src="{{ asset('bundles/webprofiler/images/profiler/logger.png') }}" alt="" /></span>
<strong>Logs</strong>
{% if collector.counterrors %}
<span class="count">
<span>{{ collector.counterrors }}</span>
</span>
{% endif %}
</span>
{% endblock %}
@ -22,8 +24,8 @@
{% if collector.logs %}
<ul class="alt">
{% for i, log in collector.logs %}
<li class="{{ i is odd ? 'odd' : 'even' }}{% if 'ERR' == log.priorityName %} error{% endif %}">
{% for log in collector.logs %}
<li class="{{ cycle(['odd', 'even'], loop.index) }}{% if 'ERR' == log.priorityName %} error{% endif %}">
{{ log.priorityName }}
{{ log.message }}
</li>