From 033edcb3450e653483e32d3e0f67fd67b81ade82 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 2 Sep 2019 17:58:36 +0200 Subject: [PATCH] Improve user experience of error viewer --- Resources/views/errors.html.twig | 35 ++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/Resources/views/errors.html.twig b/Resources/views/errors.html.twig index 078b58a..6b1e274 100644 --- a/Resources/views/errors.html.twig +++ b/Resources/views/errors.html.twig @@ -1,21 +1,26 @@ {% extends '@ArdentLogger/layout.html.twig' %} {% block ardent_logger_user_content %} - Error overview
+
+

Error overview


- {% for log in logs %} - {# @var log \App\Ardent\LoggerBundle\Entity\LogEntry #} -
-
{{ log.levelName }} #{{ log.id }}
-
-

{{ log.message }}

-
    - {% for context in log.context %} -
  • {{ context }}
  • - {% endfor %} -
+ {% for log in logs %} + {# @var log \App\Ardent\LoggerBundle\Entity\LogEntry #} +
+
+ {{ log.levelName }} #{{ log.id }} + Click to expand +
+
+

{{ log.message }}

+
    + {% for context in log.context %} +
  • {{ context }}
  • + {% endfor %} +
+
+
- -
- {% endfor %} + {% endfor %} +
{% endblock %} \ No newline at end of file