bidet / internal / handlers / templates / commit.tmpl

@ main | history


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

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