nano-run/templates/units-list.html

78 lines
2.3 KiB
HTML
Raw Normal View History

2020-09-28 13:46:37 +00:00
<html>
2020-09-28 15:12:57 +00:00
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/mvp.css">
</head>
2020-09-28 13:46:37 +00:00
<body>
2020-09-28 15:12:57 +00:00
<header>
<nav>
</nav>
<h1> Units </h1>
</header>
<main>
<section>
<table>
<thead>
<tr>
<th>Name</th>
<th>Mode</th>
<th>Concurrency</th>
<th>Attempts</th>
<th>Interval</th>
<th>Timeout</th>
<th>Max request size</th>
<th>Working directory</th>
</tr>
</thead>
<tbody>
{{range .Units}}
<tr>
<td>
<a href="unit/{{.Name}}">
{{.Name}}{{if .Secured}} (secured){{end}}
</a>
</td>
<td>
<span class="unit-mode unit-mode-{{.Mode}}">{{.Mode}}</span>
</td>
<td>
<span class="unit-mode unit-mode-workers">{{.Workers}}</span>
</td>
<td>
{{.Attempts}}
</td>
<td>
<span class="unit-mode unit-mode-interval">{{.Interval}}</span>
</td>
<td>
{{with .Timeout}}
{{.}}
{{else}}
{{end}}
</td>
<td>
{{with .MaxRequest}}
{{.}}
{{else}}
{{end}}
</td>
<td>
{{with .WorkDir}}
<details>
<summary>static</summary>
<p>{{.}}</p>
</details>
{{else}}
<i>dynamic</i>
{{end}}
</td>
</tr>
{{end}}
</tbody>
</table>
</section>
</main>
2020-09-28 13:46:37 +00:00
</body>
</html>