Migration
This is my new public git source viewer. Source coming soon. Please contact with concerns/bugs.
Contact me
templates/views/graph.html
3a50036d96eb14462e96598fd169d1c79264ac4b
· 904 B · 26 lines
raw
| 1 | {{ define "graph.html" }}{{ template "base" . }}{{ end }} |
| 2 | {{ define "main" }} |
| 3 | {{ $g := mod "graph" "150" }} |
| 4 | <header class="page-head"> |
| 5 | <h1>Branch graph</h1> |
| 6 | <p class="sub">{{ len $g.Rows }} commits across all refs · {{ $g.Lanes }} lanes</p> |
| 7 | </header> |
| 8 | |
| 9 | <table class="graph"> |
| 10 | <tbody> |
| 11 | {{ range $g.Rows }} |
| 12 | <tr> |
| 13 | <td class="rail">{{ .Rail }}</td> |
| 14 | <td class="msg"> |
| 15 | {{ range .Refs }}<span class="chip chip-{{ if eq .Kind "tag" }}tag{{ else }}branch{{ end }}">{{ .Name }}</span>{{ end }} |
| 16 | <a href="{{ print "/" $.Info.Slug }}/commit/{{ .Commit.SHA }}">{{ trunc 76 .Commit.Subject }}</a> |
| 17 | </td> |
| 18 | <td class="who">{{ .Commit.Author }}</td> |
| 19 | <td class="when"><time datetime="{{ rfc3339 .Commit.When }}">{{ date .Commit.When }}</time></td> |
| 20 | </tr> |
| 21 | {{ else }} |
| 22 | <tr><td class="empty">No commits yet.</td></tr> |
| 23 | {{ end }} |
| 24 | </tbody> |
| 25 | </table> |
| 26 | {{ end }} |