From 5699c497a45e08e9e502974e8055d1291dde29dd Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 7 Mar 2025 21:18:28 +0800 Subject: http/templates: Reduce whitespace --- templates/repo_commit.tmpl | 64 +++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'templates/repo_commit.tmpl') diff --git a/templates/repo_commit.tmpl b/templates/repo_commit.tmpl index bdb8c24..962b736 100644 --- a/templates/repo_commit.tmpl +++ b/templates/repo_commit.tmpl @@ -6,11 +6,11 @@ - {{ template "head_common" . }} - Commit {{ .commit_id }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title }} + {{- template "head_common" . -}} + Commit {{ .commit_id }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - {{ template "header" . }} + {{- template "header" . -}}
@@ -21,73 +21,73 @@ - + - + - + - + - + - +
ID{{ .commit_id }}{{- .commit_id -}}
Author{{ .commit_object.Author.Name }} <{{ .commit_object.Author.Email }}>{{- .commit_object.Author.Name -}} <{{- .commit_object.Author.Email -}}>
Author date{{ .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}{{- .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
Committer{{ .commit_object.Committer.Name }} <{{ .commit_object.Committer.Email }}>{{- .commit_object.Committer.Name -}} <{{- .commit_object.Committer.Email -}}>
Committer date{{ .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}{{- .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
Actions
Get patch
Get patch
-
{{ .commit_object.Message }}
+
{{- .commit_object.Message -}}
- {{ $parent_commit_hash := .parent_commit_hash }} - {{ $commit_object := .commit_object }} - {{ range .file_patches }} + {{- $parent_commit_hash := .parent_commit_hash -}} + {{- $commit_object := .commit_object -}} + {{- range .file_patches -}}
- -
- {{ end }} + {{- end -}}
-- cgit v1.2.3