diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-31 00:40:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-31 00:40:00 +0800 |
commit | 34820abaa02bf1cb9d8f62d2dccdaf5ba3045c81 (patch) | |
tree | c92f98d7c9d05cf956a5a4c5cb49e9d10d7bccf8 /templates/repo_tree_file.tmpl | |
parent | Use ref_query for ?branch=x, etc (diff) | |
download | forge-34820abaa02bf1cb9d8f62d2dccdaf5ba3045c81.tar.gz forge-34820abaa02bf1cb9d8f62d2dccdaf5ba3045c81.tar.zst forge-34820abaa02bf1cb9d8f62d2dccdaf5ba3045c81.zip |
Add repo tab navigation to all pages
Diffstat (limited to 'templates/repo_tree_file.tmpl')
-rw-r--r-- | templates/repo_tree_file.tmpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl index 037a5af..aa1c020 100644 --- a/templates/repo_tree_file.tmpl +++ b/templates/repo_tree_file.tmpl @@ -14,6 +14,26 @@ <body class="repo-tree-file"> {{- template "header" . -}} <div class="padding"> + <ul class="nav-tabs-standalone"> + <li class="nav-item"> + <a class="nav-link" href="../{{- template "ref_query" $root -}}">Summary</a> + </li> + <li class="nav-item active"> + <a class="nav-link" href="../tree/{{- template "ref_query" $root -}}">Tree</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="../log/{{- template "ref_query" $root -}}">Log</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="../branches/">Branches</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="../tags/">Tags</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="../settings/">Settings</a> + </li> + </ul> <p> /{{ .path_spec }} (<a href="/{{ template "group_path_plain" .group_path }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{- template "ref_query" $root -}}">raw</a>) </p> |