diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-31 09:46:58 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-31 10:07:28 +0800 |
commit | d4fc25b735555cb53175dba88df258834ba650fb (patch) | |
tree | 5c999830a1dfc8512478a9b11b4bf78c7ead2d9f /templates/repo_commit.tmpl | |
parent | Mandoc more (diff) | |
download | forge-d4fc25b735555cb53175dba88df258834ba650fb.tar.gz forge-d4fc25b735555cb53175dba88df258834ba650fb.tar.zst forge-d4fc25b735555cb53175dba88df258834ba650fb.zip |
Proper tabs on repo index
Diffstat (limited to '')
-rw-r--r-- | templates/repo_commit.tmpl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/repo_commit.tmpl b/templates/repo_commit.tmpl index 4265f39..be71211 100644 --- a/templates/repo_commit.tmpl +++ b/templates/repo_commit.tmpl @@ -3,6 +3,7 @@ SPDX-FileContributor: Runxi Yu <https://runxiyu.org> */}} {{- define "repo_commit" -}} +{{- $root := . -}} <!DOCTYPE html> <html lang="en"> <head> @@ -11,6 +12,37 @@ </head> <body class="repo-commit"> {{- template "header" . -}} + <div class="repo-header"> + <h2>{{- .repo_name -}}</h2> + <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"> + <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="../contrib/">Merge requests</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="../settings/">Settings</a> + </li> + </ul> + </div> + <div class="repo-header-extension"> + <div class="repo-header-extension-content"> + {{- .repo_description -}} + </div> + </div> <div class="padding-wrapper scroll"> <div class="key-val-grid-wrapper"> <section id="commit-info" class="key-val-grid"> |