From b288beea9ddc5709769997a9101f25a78e286b89 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 23:13:04 +0800 Subject: *: Use URL params to specify commits/branches/tags --- templates/repo_commit.html.tmpl | 4 ++-- templates/repo_index.html.tmpl | 2 +- templates/repo_tree_file.html.tmpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl index a288949..d568887 100644 --- a/templates/repo_commit.html.tmpl +++ b/templates/repo_commit.html.tmpl @@ -53,9 +53,9 @@
diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl index c3b4759..2f41aac 100644 --- a/templates/repo_index.html.tmpl +++ b/templates/repo_index.html.tmpl @@ -42,7 +42,7 @@ {{- range .files }} {{ .Mode }} - {{ .Name }}{{ if not .Is_file }}/{{ end }} + {{ .Name }}{{ if not .Is_file }}/{{ end }} {{ .Size }} {{- end }} diff --git a/templates/repo_tree_file.html.tmpl b/templates/repo_tree_file.html.tmpl index 7ddfce1..0401bb0 100644 --- a/templates/repo_tree_file.html.tmpl +++ b/templates/repo_tree_file.html.tmpl @@ -8,7 +8,7 @@

- /{{ .path_spec }} (raw) + /{{ .path_spec }} (raw)

{{ .file_contents }}