first commit
This commit is contained in:
64
templates/index.html.tera
Normal file
64
templates/index.html.tera
Normal file
@@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>XMR Node Info</title>
|
||||
<style>
|
||||
.infocards {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.infocard {
|
||||
margin: 20px;
|
||||
}
|
||||
p.subheading {
|
||||
font-size: 80%;
|
||||
}
|
||||
p.restart {
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Node Device Info</h1>
|
||||
<div class="infocards">
|
||||
<div class="infocard">
|
||||
<h2>Sys Info</h2>
|
||||
<p>Hostname: {{ system.hostname }}</p>
|
||||
<p>Uptime: {{ system.uptime }}</p>
|
||||
<p>OS: {{ system.operating_system }}</p>
|
||||
<p>Average Load: {{ system.average_load.0 }} {{ system.average_load.1 }} {{ system.average_load.2 }}</p>
|
||||
{% if system.restart_needed %}
|
||||
<p class="restart">RESTART NEEDED</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="infocard">
|
||||
<h2>HDD Info</h2>
|
||||
{% for disk in system.disks %}
|
||||
<h3>{{disk.name}}</h3>
|
||||
<p class="subheading">Mounted at: {{disk.mount_point}}</p>
|
||||
<p>{{disk.available_space}} used of {{disk.total_space}}</p>
|
||||
{% if not loop.last %}
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="infocard">
|
||||
<h2>Temperatures</h2>
|
||||
{% for comp in system.components %}
|
||||
<p class="temperature">{{ comp.name }} - {{ comp.temperature }}°C</p>
|
||||
{% if not loop.last %}
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="infocard">
|
||||
<h2>RAM</h2>
|
||||
<p>{{ system.ram.used_memory }} of {{ system.ram.total_memory }} RAM current in use</p>
|
||||
<p>{{ system.ram.used_swap }} of {{ system.ram.total_swap }} swap currently in use</p>
|
||||
</div>
|
||||
</div>
|
||||
{{__tera_context}}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user