aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-12 22:37:51 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-12 22:37:51 +0800
commit11a8f2889e874ecebdbc49a6887918c7b043c503 (patch)
tree0ead7076fe6df7a1edf6d3a54963ae328a2f0084 /templates
parentREADME.md: Update about SSH implementation (diff)
downloadforge-11a8f2889e874ecebdbc49a6887918c7b043c503.tar.gz
forge-11a8f2889e874ecebdbc49a6887918c7b043c503.tar.zst
forge-11a8f2889e874ecebdbc49a6887918c7b043c503.zip
{ssh,global}.go, index.html: Add global data containing ssh fp
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html.tmpl22
1 files changed, 19 insertions, 3 deletions
diff --git a/templates/index.html.tmpl b/templates/index.html.tmpl
index 505ea70..e88b568 100644
--- a/templates/index.html.tmpl
+++ b/templates/index.html.tmpl
@@ -3,13 +3,14 @@
<html lang="en">
<head>
{{ template "head_common" . }}
- <title>Groups &ndash; Lindenii Forge</title>
+ <title>Index &ndash; Lindenii Forge</title>
</head>
<body class="index">
<div class="padding-wrapper">
- <h1>
+ <h1>Lindenii Forge</h1>
+ <h2>
Groups
- </h1>
+ </h2>
<ul>
{{- range .groups }}
<li>
@@ -17,6 +18,21 @@
</li>
{{- end }}
</ul>
+ <h2>
+ Info
+ </h2>
+ <table class="wide">
+ <tbody>
+ <tr>
+ <th scope="row">SSH Public Key</th>
+ <td><code>{{ .global.server_public_key_string }}</code></td>
+ </tr>
+ <tr>
+ <th scope="row">SSH Fingerprint</th>
+ <td><code>{{ .global.server_public_key_fingerprint }}</code></td>
+ </tr>
+ </tbody>
+ </table>
</div>
<footer>
{{ template "footer" . }}