Use tables for representing clients

This commit is contained in:
raul 2024-06-04 09:37:19 +02:00
parent 55ec3ad43d
commit 7db2633351
1 changed files with 23 additions and 5 deletions

View File

@ -14,14 +14,32 @@
<p>Hello {{ .UserAgent }}</p>
<hr>
<h2>Current clients</h2>
{{ range .Clients }}
<p>{{ .Username }}</p>
<p>{{ .UID }}</p>
<p>{{ .GID }}</p>
<p>{{ .Hostname }}</p>
<p>{{ .OperatingSystem }}</p>
<table border=1>
<tr>
<td rowspan=2>Status</td>
<td>IP</td>
<td>Username</td>
<td>Hostname</td>
<td>Operating System</td>
<td rowspan=2>Actions</td>
</tr>
<tr>
<td>{{ .PublicIP }}</td>
<td>{{ .Username }}</td>
<td>{{ .Hostname }}</td>
<td>{{ .OperatingSystem }}</td>
</tr>
</table>
<hr>
{{ end }}
<!-- <p>{{ .Username }}</p> -->
<!-- <p>{{ .UID }}</p> -->
<!-- <p>{{ .GID }}</p> -->
<!-- <p>{{ .Hostname }}</p> -->
<!-- <p>{{ .OperatingSystem }}</p> -->
</div>
</div>
</body>