diff options
Diffstat (limited to 'templates/repo_tree_dir.html.tmpl')
-rw-r--r-- | templates/repo_tree_dir.html.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo_tree_dir.html.tmpl b/templates/repo_tree_dir.html.tmpl index d7fbb10..5e56dc9 100644 --- a/templates/repo_tree_dir.html.tmpl +++ b/templates/repo_tree_dir.html.tmpl @@ -18,10 +18,12 @@ </thead> <tbody> {{- $path_spec := .path_spec }} + {{- $ref := .ref }} + {{- $ref_type := .ref_type }} {{- range .files }} <tr> <td class="file-mode">{{ .Mode }}</td> - <td class="file-name"><a href="{{ .Name }}{{ if not .Is_file }}/{{ end }}">{{ .Name }}</a>{{ if not .Is_file }}/{{ end }}</td> + <td class="file-name"><a href="{{ .Name }}{{ if not .Is_file }}/{{ end }}{{ if $ref }}?{{ $ref_type }}={{ $ref }}{{ end }}">{{ .Name }}</a>{{ if not .Is_file }}/{{ end }}</td> <td class="file-size">{{ .Size }}</td> </tr> {{- end }} |