44 lines
1.3 KiB
Cheetah
44 lines
1.3 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
table {
|
|
border-collapse: collapse;
|
|
border: 1px solid black;
|
|
width: 100%;
|
|
background-color: azure;
|
|
}
|
|
table th {
|
|
border: 1px solid black;
|
|
background-color: aquamarine;
|
|
}
|
|
table td {
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h2>List of all users</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Years Old</th>
|
|
<th>Gender</th>
|
|
<th>City</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $value:=.table }}
|
|
<tr>
|
|
<td><a>{{ $value.Name }} {{ $value.Surname }}</a></td>
|
|
<td><a>{{ $value.YearsOld }}</a></td>
|
|
<td><a>{{ $value.Gender }}</a></td>
|
|
<td><a>{{ $value.City }}</a></td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
<input type="button" onclick="location.href='/';" value="Home" />
|
|
</body>
|
|
</html> |