diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-21 22:16:56 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-21 22:16:56 +0800 |
commit | b4abfcdcf3acda34ec8f059514fc07554bde36bb (patch) | |
tree | ae28d05c0b318d6d5dc88d60a1f4c64bd174b162 /templates | |
parent | Fix spacing in branchspec on repo indexes (diff) | |
download | forge-b4abfcdcf3acda34ec8f059514fc07554bde36bb.tar.gz forge-b4abfcdcf3acda34ec8f059514fc07554bde36bb.tar.zst forge-b4abfcdcf3acda34ec8f059514fc07554bde36bb.zip |
Fix Is_file -> IsFile naming
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo_index.tmpl | 2 | ||||
-rw-r--r-- | templates/repo_raw_dir.tmpl | 2 | ||||
-rw-r--r-- | templates/repo_tree_dir.tmpl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl index 7294fea..ba5ad9e 100644 --- a/templates/repo_index.tmpl +++ b/templates/repo_index.tmpl @@ -116,7 +116,7 @@ {{- range .files -}} <tr> <td class="file-mode">{{- .Mode -}}</td> - <td class="file-name"><a href="tree/{{- .Name -}}{{- if not .Is_file -}}/{{- end -}}{{- if $ref_type -}}?{{- $ref_type -}}={{- $ref -}}{{- end -}}">{{- .Name -}}</a>{{- if not .Is_file -}}/{{- end -}}</td> + <td class="file-name"><a href="tree/{{- .Name -}}{{- if not .IsFile -}}/{{- end -}}{{- if $ref_type -}}?{{- $ref_type -}}={{- $ref -}}{{- end -}}">{{- .Name -}}</a>{{- if not .IsFile -}}/{{- end -}}</td> <td class="file-size">{{- .Size -}}</td> </tr> {{- end -}} diff --git a/templates/repo_raw_dir.tmpl b/templates/repo_raw_dir.tmpl index 95235dd..26e04b4 100644 --- a/templates/repo_raw_dir.tmpl +++ b/templates/repo_raw_dir.tmpl @@ -32,7 +32,7 @@ {{- range .files -}} <tr> <td class="file-mode">{{- .Mode -}}</td> - <td class="file-name"><a href="{{- .Name -}}{{- if not .Is_file -}}/{{- end -}}{{- if $ref_type -}}?{{- $ref_type -}}={{- $ref -}}{{- end -}}">{{- .Name -}}</a>{{- if not .Is_file -}}/{{- end -}}</td> + <td class="file-name"><a href="{{- .Name -}}{{- if not .IsFile -}}/{{- end -}}{{- if $ref_type -}}?{{- $ref_type -}}={{- $ref -}}{{- end -}}">{{- .Name -}}</a>{{- if not .IsFile -}}/{{- end -}}</td> <td class="file-size">{{- .Size -}}</td> </tr> {{- end -}} diff --git a/templates/repo_tree_dir.tmpl b/templates/repo_tree_dir.tmpl index e3b5719..1797c80 100644 --- a/templates/repo_tree_dir.tmpl +++ b/templates/repo_tree_dir.tmpl @@ -32,7 +32,7 @@ {{- range .files -}} <tr> <td class="file-mode">{{- .Mode -}}</td> - <td class="file-name"><a href="{{- .Name -}}{{- if not .Is_file -}}/{{- end -}}{{- if $ref_type -}}?{{- $ref_type -}}={{- $ref -}}{{- end -}}">{{- .Name -}}</a>{{- if not .Is_file -}}/{{- end -}}</td> + <td class="file-name"><a href="{{- .Name -}}{{- if not .IsFile -}}/{{- end -}}{{- if $ref_type -}}?{{- $ref_type -}}={{- $ref -}}{{- end -}}">{{- .Name -}}</a>{{- if not .IsFile -}}/{{- end -}}</td> <td class="file-size">{{- .Size -}}</td> </tr> {{- end -}} |