up_fail / monitor.html
DmitrMakeev's picture
Update monitor.html
1e2e61c verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Монитор сервера</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f0f0f0;
margin: 0;
padding: 0;
}
h1 {
background-color: #4CAF50;
color: white;
padding: 20px;
margin: 0;
border-bottom: 2px solid #388E3C;
}
h2 {
color: #4CAF50;
text-align: left;
margin-top: 20px;
padding-left: 20px;
}
ul {
list-style-type: none;
padding-left: 20px;
margin: 0 auto;
max-width: 600px;
text-align: left;
}
li {
margin: 5px 0;
}
p {
margin: 5px 0;
padding-left: 20px;
text-align: left;
}
.container {
max-width: 100%;
margin: 0 auto;
padding: 20px;
background-color: #ffffff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="container">
<h1>Монитор сервера</h1>
<h2>Медиафайлы</h2>
<ul>
{% for file in uploaded_files %}
<li>{{ file }}</li>
{% endfor %}
</ul>
<h2>HTML страницы</h2>
<ul>
{% for file in uploaded_html_files %}
<li>{{ file }}</li>
{% endfor %}
</ul>
<h2>Диск сервера</h2>
<p>Total: {{ disk_space.total }}</p>
<p>Used: {{ disk_space.used }}</p>
<p>Free: {{ disk_space.free }}</p>
<h2>Оперативная память</h2>
<p>Total: {{ memory_usage.total }}</p>
<p>Used: {{ memory_usage.used }}</p>
<p>Free: {{ memory_usage.free }}</p>
<h2>Процессоры</h2>
<p>Количество процессоров: {{ cpu_count }}</p>
</div>
</body>
</html>