2024-02-07 01:18:17 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>{{.ServiceName}}</title>
|
|
|
|
<link rel="stylesheet" href="/theme/style.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<h1>{{.ServiceName}}</h1>
|
|
|
|
</header>
|
|
|
|
<main>
|
|
|
|
<div>Logged in as: {{.DisplayName}} ({{.Subject}})</div>
|
|
|
|
<div>
|
|
|
|
<form method="GET" action="/manage/apps">
|
|
|
|
<button type="submit">Manage Applications</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2024-02-08 01:16:14 +00:00
|
|
|
{{if .IsAdmin}}
|
|
|
|
<div>
|
|
|
|
<form method="GET" action="/manage/users">
|
|
|
|
<button type="submit">Manage Users</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-02-07 01:18:17 +00:00
|
|
|
<div>
|
|
|
|
<form method="POST" action="/logout">
|
|
|
|
<input type="hidden" name="nonce" value="{{.Nonce}}">
|
|
|
|
<button type="submit">Log Out</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|