legit/templates/index.html

30 lines
570 B
HTML
Raw Normal View History

2022-12-12 16:03:09 +00:00
{{ define "index" }}
<html>
{{ template "head" . }}
<header>
<h1>{{ .meta.Title }}</h1>
<h2>{{ .meta.Description }}</h2>
</header>
<body>
{{ template "nav" . }}
<main>
<table>
<tr>
<td>repository</td>
<td>description</td>
2022-12-12 16:03:09 +00:00
<td>last active</td>
</tr>
{{ range .info }}
2022-12-12 16:03:09 +00:00
<tr>
<td><a href="/{{ .Name }}">{{ .Name }}</a></td>
<td>{{ .Desc }}</td>
<td>{{ .Idle }}</td>
2022-12-12 16:03:09 +00:00
</tr>
{{ end }}
</table>
</main>
</body>
</html>
{{ end }}