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(name, ref string) %}
14<div class="row">
15 <div class="col-md-8">
16 <div class="event-list">
17 {% for _, t := range g.Tags %}
18 <div class="row event">
19 <div class="col-xxl-2">
20 {%s TimeFormat(t.Tagger.When) %}
21 </div>
22 <div class="col-xxl-7">
23 <pre>{%s t.Message %}</pre>
24 </div>
25 <div class="col-xxl-3">
26 <small>{%s t.Tagger.Name %}</small>
27 </div>
28 </div>
29 {% endfor %}
30 </div>
31 </div>
32 <div class="col-md-4">
33 <div class="event-list">
34 {% for _, b := range g.Branches %}
35 <div class="row event">
36 <div class="col-4">
37 {%s b.Name().Short() %}
38 </div>
39 <div class="col-8">
40 <div class="float-end">
41 <a href="/{%s name %}/tree/{%s b.Name().Short() %}">tree</a>
42 <a href="/{%s name %}/log/{%s b.Name().Short() %}">log</a>
43 </div>
44 </div>
45 </div>
46 {% endfor %}
47 </div>
48 </div>
49</div>
50{% endfunc %}