rearrange logfiles-view template contents to suite the overall layout better
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
BIN
templates/Froxlor/assets/img/icon.png
Normal file
BIN
templates/Froxlor/assets/img/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -9,22 +9,35 @@
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<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">
|
||||
{% block actions %}
|
||||
|
||||
{% if actions_links is iterable or (entity_info is defined and entity_info is not empty) %}
|
||||
<div>
|
||||
{% 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>
|
||||
<a class="btn {{ link.class|default('btn-outline-primary') }}" href="{{ link.href|raw }}">
|
||||
<i class="{{ link.icon|default('fa-solid fa-plus-circle') }}"></i>
|
||||
<span class="d-none d-lg-inline ms-lg-1">{{ link.label }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="d-md-flex align-items-start">
|
||||
<div class="nav flex-column nav-pills me-md-3 mb-3 mb-md-0" id="v-pills-tab" role="tablist" aria-orientation="vertical">
|
||||
<button class="nav-link active" id="v-pills-error-tab" data-bs-toggle="pill" data-bs-target="#v-pills-error" type="button" role="tab" aria-controls="v-pills-error" aria-selected="true">Error log</button>
|
||||
<button class="nav-link" id="v-pills-access-tab" data-bs-toggle="pill" data-bs-target="#v-pills-access" type="button" role="tab" aria-controls="v-pills-access" aria-selected="false">Access log</button>
|
||||
</div>
|
||||
<div class="tab-content flex-grow-1" id="v-pills-tabContent">
|
||||
<div class="tab-pane fade show active" id="v-pills-error" role="tabpanel" aria-labelledby="v-pills-error-tab">
|
||||
<textarea rows="16" class="logcontent" readonly>{{ error_log_content }}</textarea>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="v-pills-access" role="tabpanel" aria-labelledby="v-pills-access-tab">
|
||||
<textarea rows="16" class="logcontent" readonly>{{ access_log_content }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user