mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 20:48:46 +02:00
N°2435.1 Portal: Split portal composer.json in 2
- Autoloader for portal files in the itop-portal-base module - Dependencies moved to root composer.json - Add autoloader for /core and /application content
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{% set channel_is_defined = (logs|first).channel is defined %}
|
||||
|
||||
<table class="logs">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Level</th>
|
||||
{% if channel_is_defined %}<th>Channel</th>{% endif %}
|
||||
<th class="full-width">Message</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for log in logs %}
|
||||
{% if log.priority >= 400 %}
|
||||
{% set status = 'error' %}
|
||||
{% elseif log.priority >= 300 %}
|
||||
{% set status = 'warning' %}
|
||||
{% else %}
|
||||
{% set severity = log.context.exception.severity|default(false) %}
|
||||
{% set status = severity is constant('E_DEPRECATED') or severity is constant('E_USER_DEPRECATED') ? 'warning' : 'normal' %}
|
||||
{% endif %}
|
||||
<tr class="status-{{ status }}">
|
||||
<td class="text-small" nowrap>
|
||||
<span class="colored text-bold">{{ log.priorityName }}</span>
|
||||
<span class="text-muted newline">{{ log.timestamp|date('H:i:s') }}</span>
|
||||
</td>
|
||||
{% if channel_is_defined %}
|
||||
<td class="text-small text-bold nowrap">
|
||||
{{ log.channel }}
|
||||
</td>
|
||||
{% endif %}
|
||||
<td>{{ log.message|format_log_message(log.context) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user