emojiquest/templates/requested.html
2023-12-18 16:04:25 +01:00

65 lines
1.3 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Requests - Emoji Request</title>
<style>
main {
max-width: 70ch;
padding: 2rem;
margin: auto;
}
nav>a {
margin: 1ch;
}
table {
display: block;
overflow-x: auto;
white-space: nowrap;
border-spacing: 2ch 1ch;
}
table tbody {
width: 100%;
}
th {
text-align: start;
}
</style>
</head>
<body>
<nav>
<a href="/">submit</a>
<a href="/requested">requested</a>
</nav>
<main>
<h1>Requested Emojis</h1>
<table>
<thead>
<tr>
<th>At</th>
<th>By</th>
<th>Shortcode</th>
<th>URL</th>
</tr>
</thead>
<tbody>
{{- range $row := .Requests }}
<tr>
<td>{{index $row 0 }}</td>
<td>{{index $row 1 }}</td>
<td>{{index $row 2 }}</td>
<td>{{index $row 3 }}</td>
</tr>
{{- end }}
</tbody>
</table>
</main>
</body>
</html>