From f7dde29539536a67687cbeff9662a9617e077150 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 18 Aug 2025 03:12:41 +0800 Subject: Make the index page work --- forged/templates/_footer.tmpl | 2 +- forged/templates/_header.tmpl | 16 ++++++++-------- forged/templates/index.tmpl | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'forged/templates') diff --git a/forged/templates/_footer.tmpl b/forged/templates/_footer.tmpl index 22a3958..11e2365 100644 --- a/forged/templates/_footer.tmpl +++ b/forged/templates/_footer.tmpl @@ -4,7 +4,7 @@ */}} {{- define "footer" -}} Lindenii Forge -{{ .global.forge_version }} +{{ .BaseData.Global.ForgeVersion }} (upstream, license, support) diff --git a/forged/templates/_header.tmpl b/forged/templates/_header.tmpl index 340a2ac..39d3491 100644 --- a/forged/templates/_header.tmpl +++ b/forged/templates/_header.tmpl @@ -5,15 +5,15 @@ {{- define "header" -}}
- {{- if ne .user_id_string "" -}} - {{- .username -}} + {{- if ne .BaseData.UserID "" -}} + {{- .BaseData.Username -}} {{- else -}} Login {{- end -}} diff --git a/forged/templates/index.tmpl b/forged/templates/index.tmpl index 66bd177..fa9b6a0 100644 --- a/forged/templates/index.tmpl +++ b/forged/templates/index.tmpl @@ -7,7 +7,7 @@ {{- template "head_common" . -}} - Index – {{ .global.forge_title -}} + Index – {{ .BaseData.Global.ForgeTitle -}} {{- template "header" . -}} @@ -24,7 +24,7 @@ - {{- range .groups -}} + {{- range .Groups -}} {{- .Name -}} @@ -47,11 +47,11 @@ SSH public key - {{- .global.server_public_key_string -}} + {{- .BaseData.Global.SSHPubkey -}} SSH fingerprint - {{- .global.server_public_key_fingerprint -}} + {{- .BaseData.Global.SSHFingerprint -}} -- cgit v1.2.3