aboutsummaryrefslogtreecommitdiff
path: root/templates/index.htmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-13 20:17:19 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-13 20:17:19 +0800
commit3c3c383a9d6dec77e93272483699b3aef2c1dd47 (patch)
treedea1d4018a38b38fb4f8558b6279676dfda344e9 /templates/index.htmpl
parentNote that patches are required on top of hare-http (diff)
downloadforge-3c3c383a9d6dec77e93272483699b3aef2c1dd47.tar.gz
forge-3c3c383a9d6dec77e93272483699b3aef2c1dd47.tar.zst
forge-3c3c383a9d6dec77e93272483699b3aef2c1dd47.zip
Partially port templates used by the index page
Diffstat (limited to '')
-rw-r--r--templates/index.htmpl46
1 files changed, 41 insertions, 5 deletions
diff --git a/templates/index.htmpl b/templates/index.htmpl
index 3562c86..e67cc09 100644
--- a/templates/index.htmpl
+++ b/templates/index.htmpl
@@ -1,14 +1,50 @@
{{ define tp_index(handle: io::handle) (void | io::error | nomem) }}
-{!
- let title: str = "Test";
-!}
<!DOCTYPE html>
<html lang="en">
<head>
-{{ render _tp_head_common(handle, title) }}
+{{ render _tp_head_common(handle) }}
+<title>Index &ndash; {{ global.title }}</title>
</head>
<body>
-<h1>{{ title }}</h1>
+{{ render _tp_header(handle, "test", "test") }}
+<div class="padding-wrapper">
+<table class="wide rounded">
+ <thead>
+ <tr>
+ <th colspan="2" class="title-row">Groups</th>
+ </tr>
+ <tr>
+ <th scope="col">Name</th>
+ <th scope="col">Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+</table>
+<div class="padding-wrapper">
+ <table class="wide rounded">
+ <thead>
+ <tr>
+ <th colspan="2" class="title-row">
+ Info
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th scope="row">SSH public key</th>
+ <td><code>{{ global.ssh_pubkey }}</code></td>
+ </tr>
+ <tr>
+ <th scope="row">SSH fingerprint</th>
+ <td><code>{{ global.ssh_fp }}</code></td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+<footer>
+ {{ render _tp_footer(handle) }}
+</footer>
</body>
</html>
{{ end }}