1{% import "github.com/go-git/go-git/v5/plumbing" %}
2{% import "github.com/go-git/go-git/v5/plumbing/object" %}
3
4{% code
5type GitItemRefsPage struct {
6 Tags []*object.Tag
7 Branches []*plumbing.Reference
8}
9%}
10
11{% func (g *GitItemRefsPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Refs) %}{% endfunc %}
12
13{% func (g *GitItemRefsPage) GitContent() %}
14<div class="row">
15 <div class="col-xxl">
16 <h4>Tags</h4>
17 <div class="logs">
18 {% for _, t := range g.Tags %}
19 <div class="row">
20 <div class="col-xxl-2">
21 {%s TimeFormat(t.Tagger.When) %}
22 </div>
23 <div class="col-xxl-7">
24 <pre>{%s t.Message %}</pre>
25 </div>
26 <div class="col-xxl-3">
27 <small>{%s t.Tagger.Name %}</small>
28 </div>
29 </div>
30 {% endfor %}
31 </div>
32 </div>
33 <div class="col-xxl">
34 <h4>Branches</h4>
35 <div class="logs">
36 {% for _, b := range g.Branches %}
37 <div class="row">
38 <div class="col-xxl">
39 {%s b.Name().Short() %}
40 </div>
41 </div>
42 {% endfor %}
43 </div>
44 </div>
45</div>
46{% endfunc %}