diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-01 22:29:23 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-01 22:46:55 +0800 |
commit | 3a1f109493d6a0e2aa5480c5db3e065108574f5a (patch) | |
tree | fc06e6667c4a7f7e4aa4d4267b080c1fd7d447b8 | |
parent | More segments fixes (diff) | |
download | forge-3a1f109493d6a0e2aa5480c5db3e065108574f5a.tar.gz forge-3a1f109493d6a0e2aa5480c5db3e065108574f5a.tar.zst forge-3a1f109493d6a0e2aa5480c5db3e065108574f5a.zip |
Change /: in templates
Probably more nasty ones to come
-rw-r--r-- | templates/_footer.tmpl | 6 | ||||
-rw-r--r-- | templates/_group_view.tmpl | 2 | ||||
-rw-r--r-- | templates/_header.tmpl | 4 | ||||
-rw-r--r-- | templates/index.tmpl | 2 | ||||
-rw-r--r-- | templates/repo_tree_file.tmpl | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/templates/_footer.tmpl b/templates/_footer.tmpl index a0822fb..f581c3c 100644 --- a/templates/_footer.tmpl +++ b/templates/_footer.tmpl @@ -5,7 +5,7 @@ {{- define "footer" -}} <a href="https://lindenii.runxiyu.org/forge/">Lindenii Forge</a> {{ .global.forge_version }} -(<a href="/:/source/source.tar.gz">source</a>, -<a href="https://forge.lindenii.runxiyu.org/forge/:/repos/server/">upstream</a>, -<a href="/:/source/LICENSE">license</a>) +(<a href="/-/source/source.tar.gz">source</a>, +<a href="https://forge.lindenii.runxiyu.org/forge/-/repos/server/">upstream</a>, +<a href="/-/source/LICENSE">license</a>) {{- end -}} diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl index d72b55b..92b6639 100644 --- a/templates/_group_view.tmpl +++ b/templates/_group_view.tmpl @@ -43,7 +43,7 @@ {{- range .repos -}} <tr> <td> - <a href=":/repos/{{- .Name | path_escape -}}/">{{- .Name -}}</a> + <a href="-/repos/{{- .Name | path_escape -}}/">{{- .Name -}}</a> </td> <td> {{- .Description -}} diff --git a/templates/_header.tmpl b/templates/_header.tmpl index f1222af..340a2ac 100644 --- a/templates/_header.tmpl +++ b/templates/_header.tmpl @@ -26,9 +26,9 @@ </nav> <div id="main-header-user"> {{- if ne .user_id_string "" -}} - <a href="/:/users/{{- .user_id_string -}}">{{- .username -}}</a> + <a href="/-/users/{{- .user_id_string -}}">{{- .username -}}</a> {{- else -}} - <a href="/:/login/">Login</a> + <a href="/-/login/">Login</a> {{- end -}} </div> </header> diff --git a/templates/index.tmpl b/templates/index.tmpl index 28eab37..3d8fd19 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -54,7 +54,7 @@ </tr> <tr> <th scope="row">Memory usage</th> - <td>Allocated {{ .mem }} <a href="/:/gc/" class="btn btn-danger">Run the garbage collector</a></td> + <td>Allocated {{ .mem }} <a href="/-/gc/" class="btn btn-danger">Run the garbage collector</a></td> </tr> </tbody> </table> diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl index 0d8c69e..8f996d9 100644 --- a/templates/repo_tree_file.tmpl +++ b/templates/repo_tree_file.tmpl @@ -8,7 +8,7 @@ <html lang="en"> <head> {{- template "head_common" . -}} - <link rel="stylesheet" href="/:/static/chroma.css" /> + <link rel="stylesheet" href="/-/static/chroma.css" /> <title>/{{ .path_spec }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}}</title> </head> <body class="repo-tree-file"> @@ -46,7 +46,7 @@ </div> <div class="padding"> <p> - /{{ .path_spec }} (<a href="/{{ template "group_path_plain" .group_path }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{- template "ref_query" $root -}}">raw</a>) + /{{ .path_spec }} (<a href="/{{ template "group_path_plain" .group_path }}/-/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{- template "ref_query" $root -}}">raw</a>) </p> {{- .file_contents -}} </div> |