diff options
author | Runxi Yu <me@runxiyu.org> | 2025-08-12 08:41:09 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-08-12 08:41:09 +0800 |
commit | 6cceade2da5425a2a1c46ac032263c961e81affb (patch) | |
tree | e183ad90d4fd2109d66d57498b3a43649f098fae /forged/templates/repo_raw_dir.tmpl | |
parent | Remove hr and forge name footer from error page templates (diff) | |
download | forge-6cceade2da5425a2a1c46ac032263c961e81affb.tar.gz forge-6cceade2da5425a2a1c46ac032263c961e81affb.tar.zst forge-6cceade2da5425a2a1c46ac032263c961e81affb.zip |
Sticky footer
Diffstat (limited to 'forged/templates/repo_raw_dir.tmpl')
-rw-r--r-- | forged/templates/repo_raw_dir.tmpl | 130 |
1 files changed, 66 insertions, 64 deletions
diff --git a/forged/templates/repo_raw_dir.tmpl b/forged/templates/repo_raw_dir.tmpl index a33da4a..d72a41f 100644 --- a/forged/templates/repo_raw_dir.tmpl +++ b/forged/templates/repo_raw_dir.tmpl @@ -12,74 +12,76 @@ </head> <body class="repo-raw-dir"> {{- template "header" . -}} - <div class="repo-header"> - <h2>{{- .repo_name -}}</h2> - <ul class="nav-tabs-standalone"> - <li class="nav-item"> - <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="{{- .repo_url_root -}}tree/{{- template "ref_query" $root -}}">Tree</a> - </li> - <li class="nav-item"> - <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="{{- .repo_url_root -}}branches/">Branches</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="{{- .repo_url_root -}}tags/">Tags</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="{{- .repo_url_root -}}contrib/">Merge requests</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="{{- .repo_url_root -}}settings/">Settings</a> - </li> - </ul> - </div> - <div class="repo-header-extension"> - <div class="repo-header-extension-content"> - {{- .repo_description -}} + <main> + <div class="repo-header"> + <h2>{{- .repo_name -}}</h2> + <ul class="nav-tabs-standalone"> + <li class="nav-item"> + <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="{{- .repo_url_root -}}tree/{{- template "ref_query" $root -}}">Tree</a> + </li> + <li class="nav-item"> + <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="{{- .repo_url_root -}}branches/">Branches</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{{- .repo_url_root -}}tags/">Tags</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{{- .repo_url_root -}}contrib/">Merge requests</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{{- .repo_url_root -}}settings/">Settings</a> + </li> + </ul> </div> - </div> - <div class="padding-wrapper scroll"> - {{- if .ref_name -}} - <p> - <strong> - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - </strong> - </p> - {{- end -}} - <table id="file-tree" class="wide"> - <thead> - <tr class="title-row"> - <th colspan="3"> - (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end -}} - </th> - </tr> - <tr> - <th scope="col">Mode</th> - <th scope="col">Filename</th> - <th scope="col">Size</th> - </tr> - </thead> - <tbody> - {{- $path_spec := .path_spec -}} - {{- range .files -}} + <div class="repo-header-extension"> + <div class="repo-header-extension-content"> + {{- .repo_description -}} + </div> + </div> + <div class="padding-wrapper scroll"> + {{- if .ref_name -}} + <p> + <strong> + Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. + </strong> + </p> + {{- end -}} + <table id="file-tree" class="wide"> + <thead> + <tr class="title-row"> + <th colspan="3"> + (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end -}} + </th> + </tr> <tr> - <td class="file-mode">{{- .Mode -}}</td> - <td class="file-name"><a href="{{- .Name -}}{{- if not .IsFile -}}/{{- end -}}{{- template "ref_query" $root -}}">{{- .Name -}}</a>{{- if not .IsFile -}}/{{- end -}}</td> - <td class="file-size">{{- .Size -}}</td> + <th scope="col">Mode</th> + <th scope="col">Filename</th> + <th scope="col">Size</th> </tr> - {{- end -}} - </tbody> - </table> - </div> - <div class="padding-wrapper"> - <div id="refs"> + </thead> + <tbody> + {{- $path_spec := .path_spec -}} + {{- range .files -}} + <tr> + <td class="file-mode">{{- .Mode -}}</td> + <td class="file-name"><a href="{{- .Name -}}{{- if not .IsFile -}}/{{- end -}}{{- template "ref_query" $root -}}">{{- .Name -}}</a>{{- if not .IsFile -}}/{{- end -}}</td> + <td class="file-size">{{- .Size -}}</td> + </tr> + {{- end -}} + </tbody> + </table> + </div> + <div class="padding-wrapper"> + <div id="refs"> + </div> </div> - </div> + </main> <footer> {{- template "footer" . -}} </footer> |