hosts template om alle hosts te weergeven
This commit is contained in:
parent
2b0ea9f608
commit
ac1ad869a8
|
@ -0,0 +1,28 @@
|
|||
.flashes {
|
||||
color: green;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
background-color: #333;
|
||||
}
|
||||
|
||||
li {
|
||||
float: left;
|
||||
}
|
||||
|
||||
li a {
|
||||
display: block;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 14px 16px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Change the link color to #111 (black) on hover */
|
||||
li a:hover {
|
||||
background-color: #111;
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Hosts</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Alle hosts</h1>
|
||||
<p>Er zijn momenteel {{ locatiecount }} hosts in de database</p>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<th>EntryID</th>
|
||||
<th>Hostname</th>
|
||||
<th>os_type</th>
|
||||
<th>os_release</th>
|
||||
<th>total_ram</th>
|
||||
</tr>
|
||||
{% for row in hosts %}
|
||||
<tr style="text-align: center;">
|
||||
<td>{{ row[0] }}</td>
|
||||
<td>{{ row[1] }}</td>
|
||||
<td>{{ row[2] }}</td>
|
||||
<td>{{ row[3] }}</td>
|
||||
<td>{{ row[4] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue