feat: publish standalone worker
Separate worker packaging and service lifecycle from the control plane.
Этот коммит содержится в:
39
internal/webapp/templates/layout.html
Обычный файл
39
internal/webapp/templates/layout.html
Обычный файл
@@ -0,0 +1,39 @@
|
||||
{{define "layout"}}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
<title>{{.Title}}</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
<div class="brand">RSMon worker</div>
|
||||
{{if not .IsLogin}}
|
||||
<nav>
|
||||
<a href="/overview">Overview</a>
|
||||
<a href="/apps">Apps</a>
|
||||
<a href="/checks">Checks</a>
|
||||
<a href="/notifications">Notifications</a>
|
||||
<a href="/logs">Logs</a>
|
||||
<a href="/status">Status</a>
|
||||
<a href="/settings">Settings</a>
|
||||
<a href="/updates">Updates</a>
|
||||
</nav>
|
||||
<div class="who">
|
||||
<form action="/web/logout" method="post" class="logout-form">
|
||||
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
|
||||
<button type="submit" class="link">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
{{end}}
|
||||
</header>
|
||||
<main>
|
||||
{{template "body" .}}
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<span>RSMon worker v{{.Version}} · built {{.BuildDate}}</span>
|
||||
</footer>
|
||||
</body>
|
||||
</html>{{end}}
|
||||
Ссылка в новой задаче
Block a user