system.html
781 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{% extends "base.html" %}
{% block head %}
<style>
body {
background-color: #383838;
height: 300px;
}
hr {
height: 1px;
border-style: solid;
border-width: 1px 0 0 0;
border-color: white;
}
p, h1, h4, h5, hr {
color: white;
}
.fixed {
height: 340px;
overflow: hidden;
background-color: black;
}
li {
list-style-type: none;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
function retrieve_logs() {
$('#logs').load("{% url 'system_retrieve_logs' %}");
}
$(document).ready(function() {
retrieve_logs();
setInterval(retrieve_logs, 1000);
});
</script>
{% endblock %}
{% block content %}
<div id="logs" class="container-fluid">
</div>
{% endblock %}