Also publishes the jobs topic on agent revoke and updates the agent snippet to mount stacks read-write at the same path.
24 lines
779 B
HTML
24 lines
779 B
HTML
{{define "layout"}}<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{.Title}} · package-updater</title>
|
|
<link rel="stylesheet" href="/static/app.css">
|
|
<script src="/static/htmx.min.js"></script>
|
|
<script src="/static/htmx-ext-sse.js"></script>
|
|
</head>
|
|
<body hx-headers='{"X-CSRF-Token": "{{.CSRF}}"}' hx-ext="sse" sse-connect="/events">
|
|
<nav>
|
|
<a href="/">Services</a>
|
|
<a href="/jobs">Jobs</a>
|
|
<a href="/agents">Agents</a>
|
|
<form method="post" action="/auth/logout">
|
|
<input type="hidden" name="csrf_token" value="{{.CSRF}}">
|
|
<button type="submit">Log out</button>
|
|
</form>
|
|
</nav>
|
|
<main>{{template "content" .}}</main>
|
|
</body>
|
|
</html>{{end}}
|