diff options
author | Runxi Yu <me@runxiyu.org> | 2025-08-12 08:41:09 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-08-12 08:41:09 +0800 |
commit | 6cceade2da5425a2a1c46ac032263c961e81affb (patch) | |
tree | e183ad90d4fd2109d66d57498b3a43649f098fae /forged/templates/index.tmpl | |
parent | Remove hr and forge name footer from error page templates (diff) | |
download | forge-6cceade2da5425a2a1c46ac032263c961e81affb.tar.gz forge-6cceade2da5425a2a1c46ac032263c961e81affb.tar.zst forge-6cceade2da5425a2a1c46ac032263c961e81affb.zip |
Sticky footer
Diffstat (limited to 'forged/templates/index.tmpl')
-rw-r--r-- | forged/templates/index.tmpl | 86 |
1 files changed, 44 insertions, 42 deletions
diff --git a/forged/templates/index.tmpl b/forged/templates/index.tmpl index bd81f04..66bd177 100644 --- a/forged/templates/index.tmpl +++ b/forged/templates/index.tmpl @@ -11,50 +11,52 @@ </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 -}} + <main> + <div class="padding-wrapper"> + <table class="wide"> + <thead> <tr> - <td> - <a href="{{- .Name | path_escape -}}/">{{- .Name -}}</a> - </td> - <td> - {{- .Description -}} - </td> + <th colspan="2" class="title-row">Groups</th> </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 class="breakable">{{- .global.server_public_key_string -}}</code></td> - </tr> - <tr> - <th scope="row">SSH fingerprint</th> - <td><code class="breakable">{{- .global.server_public_key_fingerprint -}}</code></td> - </tr> - </tbody> - </table> - </div> + <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 class="breakable">{{- .global.server_public_key_string -}}</code></td> + </tr> + <tr> + <th scope="row">SSH fingerprint</th> + <td><code class="breakable">{{- .global.server_public_key_fingerprint -}}</code></td> + </tr> + </tbody> + </table> + </div> + </main> <footer> {{- template "footer" . -}} </footer> |