aboutsummaryrefslogtreecommitdiff
path: root/server/templates/certs.go
blob: 13766c5747e07b6b9eb1fe8f1b1fcb1a2900dc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package templates

// Certs lists all unexpired issued certificates.
const Certs = `
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Issued Certificates</title>

	<link rel="stylesheet" href="/static/css/normalize.css">
	<link rel="stylesheet" href="/static/css/skeleton.css">
	<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
</head>
<body onload="loadCerts()">
	<div class="container">
		<div class="page-header">
			<h2>Issued SSH Certificates</h2>
		</div>

		<div id="issued">
			<input class="u-full-width search" type="text" placeholder="Search" id="q" />
			<button class="button-primary" id="toggle-certs" onclick="toggleExpired()">Show Expired</button>
			<form action="/admin/revoke" method="post" id="form_revoke">
			{{ .csrfField }}
			<table id="cert-table">
				<thead>
				<tr>
					<th>ID</th>
					<th>Created</th>
					<th>Expires</th>
					<th>Principals</th>
					<th>Revoked</th>
					<th>Revoke</th>
				</tr>
				</thead>
				<tbody id="list" class="list">
				<tr>
					<td class="keyid"></td>
					<td></td>
					<td></td>
					<td class="principals"></td>
					<td></td>
					<td></td>
					</tr>
				</tbody>
			</table>
			</form>
			<button class="button-primary" type="submit" form="form_revoke" value="Revoke">Revoke</button>
		</div>
	</div>
</body>
<script src="/static/js/list.min.js"></script>
<script>
var options = {
	valueNames: [ 'keyid', 'principals' ],
}
var issuedList = new List('issued', options);
</script>
<script src="/static/js/table.js"></script>
</html>
`