aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/_footer.tmpl6
-rw-r--r--templates/_group_view.tmpl2
-rw-r--r--templates/_header.tmpl4
-rw-r--r--templates/index.tmpl2
-rw-r--r--templates/repo_tree_file.tmpl4
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 }} &ndash; {{ .repo_name }} &ndash; {{ template "group_path_plain" .group_path }} &ndash; {{ .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>