logfiles view to twig
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -57,3 +57,7 @@
|
||||
footer {
|
||||
@extend .text-muted;
|
||||
}
|
||||
|
||||
.logcontent {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
25
templates/Froxlor/user/logfiles.html.twig
Normal file
25
templates/Froxlor/user/logfiles.html.twig
Normal 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 %}
|
||||
Reference in New Issue
Block a user