~gitpocket/gitpocket

1
d96cdcc25cf34c777dcd7cd4d65855e9cbc6c2f0
mainfeed-discovery
gitpocket/templates/log.html -rw-r--r--784 bytes ViewLogBlameView rawPermalink 40e55b8c7b feat(basin): sourcehut style layout and settings tabs 1 months ago
1
2
3
4
5
6
7
8
{{define "content"}}
{{$p := .Data.Page}}
{{if .Data.Path}}<p class="muted">History of <a href="/{{$p.Repo.Path}}/tree/{{$p.Ref}}/{{.Data.Path}}">{{.Data.Path}}</a> on {{$p.Ref}}</p>{{end}}
{{if $p.Empty}}<p class="muted">No commits.</p>{{else}}
<div class="events">{{range .Data.Commits}}<div class="event"><div><a class="hash" href="/{{$p.Repo.Path}}/commit/{{.Hash}}">{{short .Hash}}</a> <a class="subject" href="/{{$p.Repo.Path}}/commit/{{.Hash}}">{{.Subject}}</a></div><div class="muted small">{{.Author}} · <span title="{{date .Time}}">{{ago .Time}}</span></div>{{if .Body}}<pre class="body">{{.Body}}</pre>{{end}}</div>{{end}}</div>
{{with .Data.Next}}<p><a class="btn" href="?from={{.}}{{if $.Data.Path}}&path={{$.Data.Path}}{{end}}">Older ▸</a></p>{{end}}
{{end}}
{{end}}