From c9b4eee4c589b8b40c02d0c96f887ec991580a24 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 09:33:11 +0800 Subject: Restructure static/templates into forged --- templates/repo_commit.tmpl | 117 --------------------------------------------- 1 file changed, 117 deletions(-) delete mode 100644 templates/repo_commit.tmpl (limited to 'templates/repo_commit.tmpl') diff --git a/templates/repo_commit.tmpl b/templates/repo_commit.tmpl deleted file mode 100644 index 470bba9..0000000 --- a/templates/repo_commit.tmpl +++ /dev/null @@ -1,117 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_commit" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - Commit {{ .commit_id }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
-
-
-
-
Commit info
-
ID
-
{{- .commit_id -}}
-
Author
-
- {{- .commit_object.Author.Name -}} <{{- .commit_object.Author.Email -}}> -
-
Author date
-
{{- .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
-
Committer
-
- {{- .commit_object.Committer.Name -}} <{{- .commit_object.Committer.Email -}}> -
-
Committer date
-
{{- .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
-
Actions
-
- Get patch -
-
-
-
- -
-
{{- .commit_object.Message -}}
-
-
- {{- $parent_commit_hash := .parent_commit_hash -}} - {{- $commit_object := .commit_object -}} - {{- range .file_patches -}} -
- - -
- {{- range .Chunks -}} - {{- if eq .Operation 0 -}} -
{{ .Content }}
- {{- else if eq .Operation 1 -}} -
{{ .Content }}
- {{- else if eq .Operation 2 -}} -
{{ .Content }}
- {{- else -}} -
{{ .Content }}
- {{- end -}} - {{- end -}} -
-
- {{- end -}} -
- - - -{{- end -}} -- cgit v1.2.3