From b4abfcdcf3acda34ec8f059514fc07554bde36bb Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 21 Mar 2025 22:16:56 +0800 Subject: Fix Is_file -> IsFile naming --- templates/repo_index.tmpl | 2 +- templates/repo_raw_dir.tmpl | 2 +- templates/repo_tree_dir.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'templates') 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 -}} {{- .Mode -}} - {{- .Name -}}{{- if not .Is_file -}}/{{- end -}} + {{- .Name -}}{{- if not .IsFile -}}/{{- end -}} {{- .Size -}} {{- 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 -}} {{- .Mode -}} - {{- .Name -}}{{- if not .Is_file -}}/{{- end -}} + {{- .Name -}}{{- if not .IsFile -}}/{{- end -}} {{- .Size -}} {{- 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 -}} {{- .Mode -}} - {{- .Name -}}{{- if not .Is_file -}}/{{- end -}} + {{- .Name -}}{{- if not .IsFile -}}/{{- end -}} {{- .Size -}} {{- end -}} -- cgit v1.2.3