Also publishes the jobs topic on agent revoke and updates the agent snippet to mount stacks read-write at the same path.
30 lines
840 B
HTML
30 lines
840 B
HTML
{{define "content"}}
|
|
<h1>Services</h1>
|
|
<div id="services" hx-get="/fragments/services" hx-trigger="sse:services" hx-swap="innerHTML">
|
|
{{template "services" .}}
|
|
</div>
|
|
{{end}}
|
|
|
|
{{define "services"}}
|
|
{{range .Groups}}
|
|
<section>
|
|
<h2>{{.Title}}</h2>
|
|
<table>
|
|
<thead><tr><th>Service</th><th>Image</th><th>Status</th><th>Mode</th></tr></thead>
|
|
<tbody>
|
|
{{range .Services}}
|
|
<tr>
|
|
<td><a href="/services/{{.ID}}">{{.DisplayName}}</a>{{if .Self}} <span class="badge">managed outside</span>{{end}}</td>
|
|
<td><code>{{shortRef .ActualRef}}</code></td>
|
|
<td class="status status-{{.Status}}">{{.Status}}</td>
|
|
<td>{{.UpdateMode}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
{{else}}
|
|
<p>No services reported yet. <a href="/agents">Add an agent</a> to get started.</p>
|
|
{{end}}
|
|
{{end}}
|