aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_tree_file.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo_tree_file.tmpl')
-rw-r--r--templates/repo_tree_file.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl
index 664a5ae..76404a9 100644
--- a/templates/repo_tree_file.tmpl
+++ b/templates/repo_tree_file.tmpl
@@ -45,6 +45,13 @@
</div>
</div>
<div class="padding">
+ {{- if .ref_name -}}
+ <p>
+ <strong>
+ Warning: Due to various recent migrations, viewing non-HEAD refs may be broken.
+ </strong>
+ </p>
+ {{- end -}}
<p>
/{{ .path_spec }} (<a href="/{{ template "group_path_plain" .group_path }}/-/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{- template "ref_query" $root -}}">raw</a>)
</p>