diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 11:41:57 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 12:28:53 +0800 |
commit | f744d2c52814b685e68438f5382e973db5edaf8c (patch) | |
tree | 72501895c1b039e349ead304c88ed4baa9031e7d /templates/repo_index.tmpl | |
parent | git2d: Add license header (diff) | |
download | forge-f744d2c52814b685e68438f5382e973db5edaf8c.tar.gz forge-f744d2c52814b685e68438f5382e973db5edaf8c.tar.zst forge-f744d2c52814b685e68438f5382e973db5edaf8c.zip |
HTML: Broken branches warning
Diffstat (limited to 'templates/repo_index.tmpl')
-rw-r--r-- | templates/repo_index.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl index 21eb5f6..d040f3a 100644 --- a/templates/repo_index.tmpl +++ b/templates/repo_index.tmpl @@ -51,6 +51,13 @@ </div> {{- end -}} <p class="readingwidth"><code>{{- .ssh_clone_url -}}</code></p> + {{- if .ref_name -}} + <p class="readingwidth"> + <strong> + Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. + </strong> + </p> + {{- end -}} {{- if .commits -}} <div class="commit-list-small"> {{- range .commits -}} |