aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 8da859bf70b31b10a14c61bd052b53cf952aa352 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{ define "index" }}
<!DOCTYPE html>
<html>
{{ template "head" . }}
<body>
<main id="legitrx">
<table id="header">
	<tr>
		<td class='logo' rowspan='2'><a href='/'><img src='/legitrx.png' alt='legitrx logo'/></a></td>
		<td class='main'>{{ .meta.Title }}</td>
		<tr><td class='sub'>{{ .meta.Description }}</td>
	</tr>
</table>
<div class="content">
	<table summary="repository list" class="list nowrap">
		<tr class="nohover">
			<th class="left">Name</th>
			<th class="left">Description</th>
			<th class="left">Idle</th>
		</tr>
{{ range .info }}
		<tr>
			<td class="toplevel-repo index-name"><a href="/{{ .Name }}">{{ .Name }}</a></td>
			<td class="desc"><a href="/{{ .Name }}">{{ .Desc }}</a></td>
			<td>{{ .Idle }}</td> <!--TODO: Idle highlight and absolute time-->
		</tr>
{{ end }}
	</table>
</div>
{{ template "foot" . }}
</main>
</body>
</html>
{{ end }}