logfiles view to twig

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-03-11 16:20:16 +01:00
parent 9c60cf006f
commit e4144d8c6a
3 changed files with 48 additions and 3 deletions

View File

@@ -57,3 +57,7 @@
footer {
@extend .text-muted;
}
.logcontent {
width: 100%;
}

View File

@@ -0,0 +1,25 @@
{% extends "Froxlor/userarea.html.twig" %}
{% block content %}
<h3 class="page-header">
<i class="fa-solid fa-magnifying-glass me-1"></i>
{{ lng('panel.viewlogs') }}
</h3>
<div class="row">
<div class="col-12 col-md-10 order-2 order-md-1">
<h4>Error-Log</h4>
<textarea rows="16" class="logcontent" readonly>{{ error_log_content }}</textarea>
<h4>Access-Log</h4>
<textarea rows="16" class="logcontent" readonly>{{ access_log_content }}</textarea>
</div>
<div class="col-12 col-md-2 order-1 order-md-2">
{% if actions_links is iterable %}
{% for link in actions_links %}
<a class="btn {{ link.class|default('btn-success') }} d-block mb-2" href="{{ link.href|raw }}">
<i class="{{ link.icon|default('fa-solid fa-plus-circle') }} me-1"></i>
{{ link.label }}</a>
{% endfor %}
{% endif %}
</div>
</div>
{% endblock %}