bidet / internal / handlers / templates / commit.tmpl

@ a2cf096eba70b87eb52429e3f17c014e386de87e | history


{{define "title"}}{{.Repo}} @ {{.Hash}}{{end}}
{{define "content"}}
<h1><a href="/{{.Repo}}">{{.Repo}}</a></h1>
<p><a href="/{{.Repo}}/refs">refs</a></p>
<h4>commit {{.Hash}} | <a href="/{{.Repo}}/tree/{{.Hash}}">tree</a></h4>
    <p>parent{{ if gt (len .Parents) 1 }}s{{end}}: {{ range .Parents }}<br><a href="/{{$.Repo}}/commit/{{.}}">{{.}}</a> {{end}}</p>
    <p>{{.Author}}</p>
    <p>{{.When}}</p>
    <pre>{{.Message}}</pre>
    {{if ne "" .Patch}}<hr><pre>{{.Patch}}</pre>{{end}}
{{end}}

{{define "commit"}}
{{template "base" .}}
{{end}}