update security
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<nav class="portal-nav" aria-label="Portal">
|
||||
<a href="/portal" {{if eq .CurrentView "codes"}}class="active" aria-current="page"{{end}}>Codes</a>
|
||||
<a href="/portal/packages" {{if eq .CurrentView "packages"}}class="active" aria-current="page"{{end}}>Packages</a>
|
||||
<a href="/portal/hosts" {{if eq .CurrentView "hosts"}}class="active" aria-current="page"{{end}}>Hosts</a>
|
||||
<a href="/portal/audit" {{if eq .CurrentView "audit"}}class="active" aria-current="page"{{end}}>Audit</a>
|
||||
</nav>
|
||||
<div class="operator">
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
{{define "hosts.html"}}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{.Title}} · TAPM</title>
|
||||
<link rel="stylesheet" href="/static/app.css">
|
||||
</head>
|
||||
<body>
|
||||
{{template "topbar" .}}
|
||||
<main class="page">
|
||||
<section class="view-heading">
|
||||
<div>
|
||||
<p class="eyebrow">Privacy-minimized fleet registry</p>
|
||||
<h1>ProxMenu hosts.</h1>
|
||||
<p>Installations are identified by a random ID. No hostname, machine ID, username, VM inventory, or credential is collected.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel">
|
||||
<div class="fleet-table">
|
||||
<div class="fleet-row fleet-header" aria-hidden="true">
|
||||
<span>Installation</span>
|
||||
<span>Software</span>
|
||||
<span>Platform</span>
|
||||
<span>Last activity</span>
|
||||
</div>
|
||||
{{range .FleetHosts}}
|
||||
<article class="fleet-row">
|
||||
<div>
|
||||
<strong>{{shortInstallationID .InstallationID}}</strong>
|
||||
<span class="status {{if .VerifiedAt.Valid}}enabled{{end}}">{{if .VerifiedAt.Valid}}Verified{{else}}Unverified{{end}}</span>
|
||||
<small>First seen {{formatTime .FirstSeenAt}}</small>
|
||||
</div>
|
||||
<div>
|
||||
<strong>{{if .ProxMenuVersion}}{{.ProxMenuVersion}}{{else}}Unknown version{{end}}</strong>
|
||||
{{if .GitCommit}}<small>Commit {{shortCommit .GitCommit}}</small>{{end}}
|
||||
</div>
|
||||
<div>
|
||||
<span>{{if .PVEVersion}}{{.PVEVersion}}{{else}}Unknown PVE{{end}}</span>
|
||||
<small>{{.OSVersion}}{{if .Architecture}} · {{.Architecture}}{{end}}</small>
|
||||
{{if .KernelVersion}}<small>Kernel {{.KernelVersion}}</small>{{end}}
|
||||
<small>{{if .Clustered}}Clustered{{else}}Standalone{{end}}</small>
|
||||
</div>
|
||||
<div>
|
||||
<strong>{{.LastEvent}} · {{.LastResult}}</strong>
|
||||
<span class="status {{if isStale .LastSeenAt}}closed{{else}}enabled{{end}}">{{if isStale .LastSeenAt}}Stale{{else}}Current{{end}}</span>
|
||||
<small>{{formatTime .LastSeenAt}}</small>
|
||||
{{if .LastErrorCode}}<small>Error: {{.LastErrorCode}}</small>{{end}}
|
||||
</div>
|
||||
</article>
|
||||
{{else}}
|
||||
<p class="empty">No ProxMenu installations have registered yet.</p>
|
||||
{{end}}
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user