aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 10:29:57 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 10:31:31 +0800
commitac956e5521b4ad1cce1f978cc1aef51e6aeb9480 (patch)
tree75a907b803a83452a5e0e8f5315458fa302059e8 /templates
parentdatabase.go: query_list[T any] (diff)
downloadforge-ac956e5521b4ad1cce1f978cc1aef51e6aeb9480.tar.gz
forge-ac956e5521b4ad1cce1f978cc1aef51e6aeb9480.tar.zst
forge-ac956e5521b4ad1cce1f978cc1aef51e6aeb9480.zip
index: Reformat the page
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html.tmpl44
1 files changed, 30 insertions, 14 deletions
diff --git a/templates/index.html.tmpl b/templates/index.html.tmpl
index 50cd489..c725948 100644
--- a/templates/index.html.tmpl
+++ b/templates/index.html.tmpl
@@ -8,21 +8,37 @@
<body class="index">
{{ template "header" . }}
<div class="padding-wrapper">
- <h1>Lindenii Forge</h1>
- <h2>
- Groups
- </h2>
- <ul>
- {{- range .groups }}
- <li>
- <a href="{{ . }}/:/repos/">{{ . }}</a>
- </li>
- {{- end }}
- </ul>
- <h2>
- Info
- </h2>
<table class="wide">
+ <thead>
+ <tr>
+ <th colspan="2" class="title-row">
+ Groups
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ {{- range .groups }}
+ <tr>
+ <td>
+ <a href="{{ .Name }}/:/repos/">{{ .Name }}</a>
+ </td>
+ <td>
+ {{ .Description }}
+ </td>
+ </tr>
+ {{- end }}
+ </tbody>
+ </table>
+ </div>
+ <div class="padding-wrapper">
+ <table class="wide">
+ <thead>
+ <tr>
+ <th colspan="2" class="title-row">
+ Info
+ </th>
+ </tr>
+ </thead>
<tbody>
<tr>
<th scope="row">SSH Public Key</th>