[TwigBundle] Improved logs display on exception page

This commit is contained in:
Jordan Alliot 2012-07-14 13:58:32 +02:00
parent c99b10804b
commit 1764574198
2 changed files with 6 additions and 2 deletions

View File

@ -83,6 +83,10 @@ build: 56
color: #AA3333;
background: #f9ecec;
}
.sf-exceptionreset #logs .traces li.warning {
font-style: normal;
background: #ffcc00;
}
/* fix for Opera not liking empty <li> */
.sf-exceptionreset .traces li:after {
content: "\00A0";

View File

@ -1,7 +1,7 @@
<ol class="traces logs">
{% for log in logs %}
<li{% if log.priorityName in ['EMERG', 'ERR', 'CRIT', 'ALERT', 'ERROR', 'CRITICAL'] %} class="error"{% endif %}>
{{ log.message }}
<li{% if log.priority >= 400 %} class="error"{% elseif log.priority >= 300 %} class="warning"{% endif %}>
{{ log.priorityName }} - {{ log.message }}
</li>
{% endfor %}
</ol>