569340cf5fa42e3986981d057b955fb893418910 / internal/web/templates/commit.html · 570 bytes · raw
{{define "title"}}{{.Subject}} · {{.Owner}}/{{.RepoName}} · simplegit{{end}}
{{define "content"}}
{{template "repo_nav" .}}
<h2>{{.Subject}}</h2>
{{if .Body}}<pre>{{.Body}}</pre>{{end}}
<p class="muted">
<code>{{.SHA}}</code><br>
{{.Author}} <{{.Email}}> · {{.Date}} ·
<a href="{{.TreeHref}}">browse files at this commit</a>
</p>
{{if .Parents}}
<p class="muted">parents:
{{range .Parents}}<a href="{{.Href}}"><code>{{.SHA}}</code></a> {{end}}
</p>
{{end}}
{{if .Notice}}<p class="error">{{.Notice}}</p>{{end}}
<article>{{.DiffHTML}}</article>
{{end}}