all repos — elgit @ f04137f841de6fefe4c79fedeb718b252a3b2958

fork of legit: web frontend for git, written in go

template: render diff header lines

commit

f04137f841de6fefe4c79fedeb718b252a3b2958

parent

c165c447685d68c2b0b2293a31937a903394f943

1 file changed, 4 insertions(+), 1 deletion(-)

changed files
M templates/commit.htmltemplates/commit.html
@@ -10,7 +10,7 @@ <body>
{{ template "nav" . }} <main> <section> - <p>author: {{ .commit.Author.Name }} <{{ .commit.Author.Email}}> on {{ .commit.Author.When }}</p> + <p>author: {{ .commit.Author.Name }} <{{ .commit.Author.Email}}> on {{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</p> <p>commit: <a href="/{{ .name }}/commit/{{ .commit.This }}"> {{ .commit.This }} </a>
@@ -40,6 +40,9 @@ <span style="color: green">{{ .String }}</span>
{{- end -}} {{- if eq .Op.String "-" -}} <span style="color: red">{{ .String }}</span> + {{- end -}} + {{- if eq .Op.String " " -}} + <span style="color: gray">{{ .String }}</span> {{- end -}} {{- end -}} {{- end -}}