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> <p>Hello {{ .UserAgent }}</p>
<hr> <hr>
<h2>Current clients</h2> <h2>Current clients</h2>
{{ range .Clients }} {{ range .Clients }}
<p>{{ .Username }}</p> <table border=1>
<p>{{ .UID }}</p> <tr>
<p>{{ .GID }}</p> <td rowspan=2>Status</td>
<p>{{ .Hostname }}</p> <td>IP</td>
<p>{{ .OperatingSystem }}</p> <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> <hr>
{{ end }} {{ end }}
<!-- <p>{{ .Username }}</p> -->
<!-- <p>{{ .UID }}</p> -->
<!-- <p>{{ .GID }}</p> -->
<!-- <p>{{ .Hostname }}</p> -->
<!-- <p>{{ .OperatingSystem }}</p> -->
</div> </div>
</div> </div>
</body> </body>