aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_tree_dir.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 11:41:57 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 12:28:53 +0800
commitf744d2c52814b685e68438f5382e973db5edaf8c (patch)
tree72501895c1b039e349ead304c88ed4baa9031e7d /templates/repo_tree_dir.tmpl
parentgit2d: Add license header (diff)
downloadforge-f744d2c52814b685e68438f5382e973db5edaf8c.tar.gz
forge-f744d2c52814b685e68438f5382e973db5edaf8c.tar.zst
forge-f744d2c52814b685e68438f5382e973db5edaf8c.zip
HTML: Broken branches warning
Diffstat (limited to 'templates/repo_tree_dir.tmpl')
-rw-r--r--templates/repo_tree_dir.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/repo_tree_dir.tmpl b/templates/repo_tree_dir.tmpl
index c528fee..fc06646 100644
--- a/templates/repo_tree_dir.tmpl
+++ b/templates/repo_tree_dir.tmpl
@@ -44,6 +44,13 @@
</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">