{{define "content" -}} {{template "repohead" .}} {{- $r := .Repo}}

{{.C.Subject}}

{{- with .C.Body}}

{{.}}

{{end}}
{{template "who" (dict "R" $r "Name" .C.Author)}} {{.C.Author}} committed {{- range .Parents}}parent {{if .Href}}{{slice .Name 0 7}}{{else}}{{slice .Name 0 7}}{{end}} {{end -}} commit {{template "sha" (dict "R" $r "Hash" .C.Hash)}}
{{- with $r.Sig .C.Hash}}

{{- if .Verified}}{{template "icon" "lock"}}Verified{{with .Signer}}signed by {{.}}{{else}}signature verified by Gitea{{end}}{{if .Key}} with {{.KeyType}} key {{.Key}}{{end}} {{- else}}{{template "icon" "unlock"}}SignedGitea couldn't verify the signature.{{end -}}

{{- end}} {{- with .Status}} {{- end}}

Showing {{len .Files}} changed file{{if ne (len .Files) 1}}s{{end}} with {{.Added}} addition{{if ne .Added 1}}s{{end}} and {{.Deleted}} deletion{{if ne .Deleted 1}}s{{end}}.

{{- range .Files}}
{{ficon .Path "blob"}} {{with .OldPath}}{{.}} → {{end}}{{.Path}} {{- with .Status}}{{.}}{{end}} +{{.Added}} −{{.Deleted}}
{{- if .Binary}}

Binary file, not shown.

{{- else if .Lines}}

    {{- range .Lines}}
      {{- if eq .Kind 64}}{{.Text}}{{else}}{{if .Old}}{{.Old}}{{end}}{{if .New}}{{.New}}{{end}}{{.Text}}{{end -}}
    {{end -}}
  
{{- if .Truncated}}

Diff truncated. Clone the repository for the full change.

{{end}} {{- else if .Truncated}}

Diff truncated. Clone the repository for the full change.

{{- else}}

No content changes.

{{- end}}
{{- end}} {{- end}}