Migration
This is my new public git source viewer. Source coming soon. Please contact with concerns/bugs.
Contact me
templates/views/refs.html
3a50036d96eb14462e96598fd169d1c79264ac4b
· 1.3 KB · 34 lines
raw
| 1 | {{ define "refs.html" }}{{ template "base" . }}{{ end }} |
| 2 | {{ define "main" }} |
| 3 | {{ $r := mod "refs" }}{{ $slug := print "/" .Info.Slug }} |
| 4 | <header class="page-head"> |
| 5 | <h1>Refs</h1> |
| 6 | <p class="sub">{{ len $r.Branches }} branches · {{ len $r.Tags }} tags</p> |
| 7 | </header> |
| 8 | <section> |
| 9 | <h2>Branches</h2> |
| 10 | <table class="listing refs"><tbody> |
| 11 | {{ range $r.Branches }} |
| 12 | <tr> |
| 13 | <td class="name"><a href="{{ $slug }}/tree/{{ .Name }}">{{ .Name }}</a></td> |
| 14 | <td class="desc">{{ trunc 64 .Title }}</td> |
| 15 | <td class="when"><time datetime="{{ rfc3339 .When }}">{{ date .When }}</time></td> |
| 16 | <td class="act"><a class="ghost" href="{{ $slug }}/compare/{{ $.Ref }}...{{ .Name }}">compare</a></td> |
| 17 | </tr> |
| 18 | {{ else }}<tr><td class="empty" colspan="4">No branches.</td></tr>{{ end }} |
| 19 | </tbody></table> |
| 20 | </section> |
| 21 | <section> |
| 22 | <h2>Tags</h2> |
| 23 | <table class="listing refs"><tbody> |
| 24 | {{ range $r.Tags }} |
| 25 | <tr> |
| 26 | <td class="name"><a href="{{ $slug }}/tree/{{ .Name }}">{{ .Name }}</a></td> |
| 27 | <td class="desc">{{ trunc 64 .Title }}</td> |
| 28 | <td class="when"><time datetime="{{ rfc3339 .When }}">{{ date .When }}</time></td> |
| 29 | <td class="act"><a class="ghost" href="{{ $slug }}/compare/{{ $.Ref }}...{{ .Name }}">compare</a></td> |
| 30 | </tr> |
| 31 | {{ else }}<tr><td class="empty" colspan="4">No tags.</td></tr>{{ end }} |
| 32 | </tbody></table> |
| 33 | </section> |
| 34 | {{ end }} |