summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/legacy/log.html
blob: 12c7c50a77df138c80d829296f07d4563e60794b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends 'commands.html' %}
{% import "bootstrap/wtf.html" as wtf %}

{% set sidebar_state = 'disabled' %}
{% set btn_back = true %}

{% block nav_logs %} active{% endblock %}
{% block nav_logs_log %} active{% endblock %}
{% block content %}

<h2 class="mx-5 subhead-heading">{{_('Client log')}}</h2>

<style>
    /* Prevent overflow */
    pre {
        max-width: 100%;
        overflow: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
</style>

<div class="container-fluid d-flex flex-column" style="height: 90vh;">
    <div class="border p-3 overflow-auto flex-grow-1" id="logContainer">
        <pre>{{ log }}</pre>
    </div>
</div>

<script>
    function scrollToBottom() {
        const logContainer = document.getElementById('logContainer');
        logContainer.scrollTo({ top: logContainer.scrollHeight, behavior: 'instant' });
    }

    document.addEventListener("DOMContentLoaded", scrollToBottom);
</script>


{% endblock %}