diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-06 09:33:11 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-06 09:34:06 +0800 |
commit | c9b4eee4c589b8b40c02d0c96f887ec991580a24 (patch) | |
tree | 0ab3f2a22e9c4ca430573559d5712a4a7a6903a3 /templates/index.tmpl | |
parent | Move the Go stuff to ./forged/ (diff) | |
download | forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.gz forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.zst forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.zip |
Restructure static/templates into forged
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r-- | templates/index.tmpl | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl deleted file mode 100644 index ff7c127..0000000 --- a/templates/index.tmpl +++ /dev/null @@ -1,63 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org> -*/}} -{{- define "index" -}} -<!DOCTYPE html> -<html lang="en"> - <head> - {{- template "head_common" . -}} - <title>Index – {{ .global.forge_title -}}</title> - </head> - <body class="index"> - {{- template "header" . -}} - <div class="padding-wrapper"> - <table class="wide"> - <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> - {{- range .groups -}} - <tr> - <td> - <a href="{{- .Name | path_escape -}}/">{{- .Name -}}</a> - </td> - <td> - {{- .Description -}} - </td> - </tr> - {{- end -}} - </tbody> - </table> - <table class="wide"> - <thead> - <tr> - <th colspan="2" class="title-row"> - Info - </th> - </tr> - </thead> - <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" . -}} - </footer> - </body> -</html> -{{- end -}} |