~gitpocket/gitpocket

4
597adb2049e47c4cfeecc6e4b2d359e0769ba675
mainfeed-discovery
gitpocket/templates/log.html -rw-r--r--781 bytes ViewLogBlameView rawPermalink 597adb2049 feat(basin): sourcehut event markup for repo lists 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="log">{{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}}