aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-03 17:57:18 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-03 17:57:18 +0800
commit3e70d15a8af4acb5f3ed09a01ce208dba70c7058 (patch)
tree18665e94555d7f6adac1749e9932e15811f71014 /templates
parentHTML: Use the proper repo_url_root in tree/rawtree (diff)
downloadforge-3e70d15a8af4acb5f3ed09a01ce208dba70c7058.tar.gz
forge-3e70d15a8af4acb5f3ed09a01ce208dba70c7058.tar.zst
forge-3e70d15a8af4acb5f3ed09a01ce208dba70c7058.zip
HTML: Fix the repo file page toov0.1.13
Diffstat (limited to 'templates')
-rw-r--r--templates/repo_tree_file.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl
index 8f996d9..664a5ae 100644
--- a/templates/repo_tree_file.tmpl
+++ b/templates/repo_tree_file.tmpl
@@ -17,25 +17,25 @@
<h2>{{- .repo_name -}}</h2>
<ul class="nav-tabs-standalone">
<li class="nav-item">
- <a class="nav-link" href="../{{- template "ref_query" $root -}}">Summary</a>
+ <a class="nav-link" href="{{- .repo_url_root -}}{{- template "ref_query" $root -}}">Summary</a>
</li>
<li class="nav-item">
- <a class="nav-link active" href="../tree/{{- template "ref_query" $root -}}">Tree</a>
+ <a class="nav-link active" href="{{- .repo_url_root -}}tree/{{- template "ref_query" $root -}}">Tree</a>
</li>
<li class="nav-item">
- <a class="nav-link" href="../log/{{- template "ref_query" $root -}}">Log</a>
+ <a class="nav-link" href="{{- .repo_url_root -}}log/{{- template "ref_query" $root -}}">Log</a>
</li>
<li class="nav-item">
- <a class="nav-link" href="../branches/">Branches</a>
+ <a class="nav-link" href="{{- .repo_url_root -}}branches/">Branches</a>
</li>
<li class="nav-item">
- <a class="nav-link" href="../tags/">Tags</a>
+ <a class="nav-link" href="{{- .repo_url_root -}}tags/">Tags</a>
</li>
<li class="nav-item">
- <a class="nav-link" href="../contrib/">Merge requests</a>
+ <a class="nav-link" href="{{- .repo_url_root -}}contrib/">Merge requests</a>
</li>
<li class="nav-item">
- <a class="nav-link" href="../settings/">Settings</a>
+ <a class="nav-link" href="{{- .repo_url_root -}}settings/">Settings</a>
</li>
</ul>
</div>