| 1 | {{define "commitgraph"}} |
| 2 | <div class="commitgraph-slot"> |
| 3 | <aside class="commitgraph" aria-label="{{t "graph.label"}}" style="--lanes: {{.Graph.Lanes}}"> |
| 4 | {{.Graph.SVG}} |
| 5 | <ol class="commitgraph-list"> |
| 6 | {{range .Graph.Rows}} |
| 7 | <li class="commitgraph-row" style="--lane: {{.Lane}}"> |
| 8 | <span class="commitgraph-refs">{{range .Labels}}<span class="commitgraph-ref {{.Kind}}{{if .Default}} is-default{{end}} {{.Class}}" title="{{.Name}}">{{.Name}}</span>{{end}}</span> |
| 9 | <span class="commitgraph-lanes" aria-hidden="true"></span> |
| 10 | <a class="commitgraph-msg" href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}" title="{{.Subject}}">{{.Subject}}</a> |
| 11 | <a class="commitgraph-node {{.Class}}" href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}" title="{{.Short}}">{{if .Avatar}}<img src="{{.Avatar}}" alt="">{{else}}<span>{{.Initial}}</span>{{end}}</a> |
| 12 | </li> |
| 13 | {{end}} |
| 14 | </ol> |
| 15 | </aside> |
| 16 | </div> |
| 17 | {{end}} |