Parcourir la source

Merge remote branch 'Seldaek/exception_template'

* Seldaek/exception_template:
  [FrameworkBundle] Adjust styling and display of logs
Fabien Potencier il y a 14 ans
Parent
commit
13bc7c7c53

+ 7 - 7
src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css

@@ -91,16 +91,16 @@ build: 56
     margin-left:20px;
 }
 
-/* fix for Opera not liking empty <li> */
-.sf-exceptionreset .traces li:after {
-    content: '\00A0'
-}
-
-.sf-exceptionreset #logs .traces em
+.sf-exceptionreset #logs .traces li.error
 {
     font-style:normal;
     color:#AA3333;
-    font-weight: bold;
+    background:#f9ecec;
+}
+
+/* fix for Opera not liking empty <li> */
+.sf-exceptionreset .traces li:after {
+    content: '\00A0'
 }
 
 .sf-exceptionreset .trace

+ 1 - 7
src/Symfony/Bundle/FrameworkBundle/Resources/views/Exception/logs.html.twig

@@ -1,12 +1,6 @@
 <ol class="traces">
     {% for log in logs %}
-        <li>
-            {% if log.priorityName in ['EMERG', 'ERR', 'CRIT', 'ALERT', 'ERROR', 'CRITICAL'] %}
-                <em>{{ log.priorityName }}</em>
-            {% else %}
-                {{ log.priorityName }}
-            {% endif %}
-
+        <li{% if log.priorityName in ['EMERG', 'ERR', 'CRIT', 'ALERT', 'ERROR', 'CRITICAL'] %} class="error"{% endif %}>
             {{ log.message }}
         </li>
     {% endfor %}