From 3a1f109493d6a0e2aa5480c5db3e065108574f5a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 01 Apr 2025 22:29:23 +0800 Subject: [PATCH] Change /: in templates Probably more nasty ones to come --- templates/_footer.tmpl | 6 +++--- templates/_group_view.tmpl | 2 +- templates/_header.tmpl | 4 ++-- templates/index.tmpl | 2 +- templates/repo_tree_file.tmpl | 4 ++-- diff --git a/templates/_footer.tmpl b/templates/_footer.tmpl index a0822fb05622cd44761c1e7534dd180c051c21eb..f581c3ca73e77a6a00a35f9dc2ea404319690afb 100644 --- a/templates/_footer.tmpl +++ b/templates/_footer.tmpl @@ -5,7 +5,7 @@ */}} {{- define "footer" -}} Lindenii Forge {{ .global.forge_version }} -(source, -upstream, -license) +(source, +upstream, +license) {{- end -}} diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl index d72b55b4aeb6bc367f5255f30c78497ee7694006..92b66390e0ec1409837a48fcf7694804f26ebabd 100644 --- a/templates/_group_view.tmpl +++ b/templates/_group_view.tmpl @@ -43,7 +43,7 @@ {{- range .repos -}} - {{- .Name -}} + {{- .Name -}} {{- .Description -}} diff --git a/templates/_header.tmpl b/templates/_header.tmpl index f1222af4dab3e15363633836300d85c52c782f78..340a2ac6d295e5ce78f6b0d089844229323fe557 100644 --- a/templates/_header.tmpl +++ b/templates/_header.tmpl @@ -26,9 +26,9 @@ {{- end -}}
{{- if ne .user_id_string "" -}} - {{- .username -}} + {{- .username -}} {{- else -}} - Login + Login {{- end -}}
diff --git a/templates/index.tmpl b/templates/index.tmpl index 28eab37b23209b9e1fa00317eebc22021e50a60d..3d8fd1997e306d362862c434f727a3581d526094 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -54,7 +54,7 @@ {{- .global.server_public_key_fingerprint -}} Memory usage - Allocated {{ .mem }} Run the garbage collector + Allocated {{ .mem }} Run the garbage collector diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl index 0d8c69ebc53e1b0ed7df02eef3143b4c2514f2f0..8f996d96720e3d344b594f95848af613b1d7f6dd 100644 --- a/templates/repo_tree_file.tmpl +++ b/templates/repo_tree_file.tmpl @@ -8,7 +8,7 @@ {{- template "head_common" . -}} - + /{{ .path_spec }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} @@ -46,7 +46,7 @@

- /{{ .path_spec }} (raw) + /{{ .path_spec }} (raw)

{{- .file_contents -}}
-- 2.48.1