aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html45
1 files changed, 30 insertions, 15 deletions
diff --git a/templates/index.html b/templates/index.html
index f53f851..bf8c305 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -2,21 +2,36 @@
<!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></th>
+ <td class="desc"><a href="/{{ .Name }}">{{ .Desc }}</a></th>
+ <td>{{ .Idle }}</th> <!--TODO: Idle highlight and absolute time-->
+ </tr>
+{{ end }}
+ </table>
+</div>
- <header>
- <h1>{{ .meta.Title }}</h1>
- <h2>{{ .meta.Description }}</h2>
- </header>
- <body>
- <main>
- <div class="index">
- {{ range .info }}
- <div class="index-name"><a href="/{{ .Name }}">{{ .Name }}</a></div>
- <div class="desc">{{ .Desc }}</div>
- <div>{{ .Idle }}</div>
- {{ end }}
- </div>
- </main>
- </body>
+<div class='footer'>
+ Generated by <a href='https://git.sr.ht/~runxiyu/legitrx'>legitrx</a>.
+</div>
+</main>
+</body>
</html>
{{ end }}