BlueGit

timfa bluegit

Files

bluegit / internal / server / templates / commitgraph.html

commitgraph.html

commitgraph.html 1.1 KiB Download Raw
1{{define "commitgraph"}}
2<div class="commitgraph-slot">
3<aside class="commitgraph" aria-label="{{t "graph.label"}}" style="--lanes: {{.Graph.Lanes}}; --graph-w: {{.Graph.PanelWidth}}px" data-selected="{{.Rev}}">
4 {{.Graph.SVG}}
5 <ol class="commitgraph-list">
6 {{range .Graph.Rows}}
7 <li class="commitgraph-row" style="--lane: {{.Lane}}"{{if .Branch}} data-branch="{{.Branch}}"{{end}}>
8 <span class="commitgraph-refs">{{range .Labels}}<span class="commitgraph-ref {{.Kind}}{{if .Default}} is-default{{end}} {{.Class}}"{{if .Ref}} data-branch="{{.Ref}}" title="{{.Ref}}"{{else}} title="{{.Name}}"{{end}}>{{.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 .Branch}} data-branch="{{.Branch}}"{{end}}>{{if .Avatar}}<img src="{{.Avatar}}" alt="">{{else}}<span>{{.Initial}}</span>{{end}}</a>
12 </li>
13 {{end}}
14 </ol>
15</aside>
16</div>
17{{end}}