Improve layout of error display

This commit is contained in:
Tim 2019-06-03 13:53:52 +02:00
parent 858f71e945
commit 8ee5d42da8

View File

@ -6,14 +6,16 @@
{% for log in logs %} {% for log in logs %}
{# @var log \App\Ardent\LoggerBundle\Entity\LogEntry #} {# @var log \App\Ardent\LoggerBundle\Entity\LogEntry #}
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-header bg-dark text-white" role="button" data-toggle="collapse" data-target="#log-body{{ log.id }}">{{ log.levelName }} #{{ log.id }}</div>
<h5 class="card-title">{{ log.levelName }} #{{ log.id }}</h5> <div class="card-body collapse" id="log-body{{ log.id }}">
<h6 class="card-subtitle mb-2 text-muted">{{ log.createdAt | date('D, d M y H:i:s') }}</h6>
<p class="card-text">{{ log.message }}</p> <p class="card-text">{{ log.message }}</p>
{% for context in log.context %} <ul class="list-group list-group-flush">
<p class="card-text"> > {{ context }}</p> {% for context in log.context %}
{% endfor %} <li class="list-group-item">{{ context }}</li>
{% endfor %}
</ul>
</div> </div>
<div class="card-footer">{{ log.createdAt | date('D, d M y H:i:s') }} </div>
</div> </div>
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}