summaryrefslogtreecommitdiffstats
path: root/templates/commit.html
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-12 18:02:07 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-12 18:02:07 +0530
commitf04137f841de6fefe4c79fedeb718b252a3b2958 (patch)
treeaa13f85cea086904d29c6dcc8b694b45196e28d4 /templates/commit.html
parentc165c447685d68c2b0b2293a31937a903394f943 (diff)
downloadlegit-f04137f841de6fefe4c79fedeb718b252a3b2958.tar.gz
legit-f04137f841de6fefe4c79fedeb718b252a3b2958.tar.bz2
legit-f04137f841de6fefe4c79fedeb718b252a3b2958.zip
template: render diff header lines
Diffstat (limited to '')
-rw-r--r--templates/commit.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/commit.html b/templates/commit.html
index e6af551..f7a36b4 100644
--- a/templates/commit.html
+++ b/templates/commit.html
@@ -10,7 +10,7 @@
{{ 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>
@@ -41,6 +41,9 @@
{{- if eq .Op.String "-" -}}
<span style="color: red">{{ .String }}</span>
{{- end -}}
+ {{- if eq .Op.String " " -}}
+ <span style="color: gray">{{ .String }}</span>
+ {{- end -}}
{{- end -}}
{{- end -}}
</pre>