2024-03-28 12:57:35 -04:00
|
|
|
{{ define "content" }}
|
|
|
|
<table>
|
|
|
|
<tr>
|
2024-03-29 18:35:04 -04:00
|
|
|
<th>key.</th>
|
|
|
|
<th>created at.</th>
|
|
|
|
<th>revoke.</th>
|
2024-03-28 12:57:35 -04:00
|
|
|
</tr>
|
|
|
|
{{ if (eq (len .APIKeys) 0) }}
|
|
|
|
<tr>
|
2024-03-29 18:35:04 -04:00
|
|
|
<td colspan="5"><span class="blinky">no api keys found</span></td>
|
2024-03-28 12:57:35 -04:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
{{ range $key := .APIKeys }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ $key.Key }}</td>
|
2024-03-29 18:35:04 -04:00
|
|
|
<td class="time">{{ $key.CreatedAt }}</td>
|
2024-03-28 12:57:35 -04:00
|
|
|
<td>
|
|
|
|
<form method="POST" action="/keys/delete">
|
|
|
|
<input type="hidden" name="key" value="{{ $key.Key }}" />
|
2024-03-29 18:35:04 -04:00
|
|
|
<input type="submit" value="revoke." />
|
2024-03-28 12:57:35 -04:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<form method="POST" action="/keys" class="form">
|
2024-03-29 18:35:04 -04:00
|
|
|
<h2>generate key.</h2>
|
2024-03-28 12:57:35 -04:00
|
|
|
<hr>
|
2024-03-29 18:35:04 -04:00
|
|
|
<input type="submit" value="generate." />
|
2024-03-28 16:58:07 -04:00
|
|
|
</form>
|
2024-03-28 12:57:35 -04:00
|
|
|
{{ end }}
|