aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_raw_dir.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo_raw_dir.html.tmpl')
-rw-r--r--templates/repo_raw_dir.html.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo_raw_dir.html.tmpl b/templates/repo_raw_dir.html.tmpl
index a264d24..dc1a5b6 100644
--- a/templates/repo_raw_dir.html.tmpl
+++ b/templates/repo_raw_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 }}