cerrado @ 75d3ee252e7d966055bb76258d3e0da28488d261

 1{% import "github.com/go-git/go-git/v5/plumbing" %}
 2
 3{% code
 4type GitItemRefsPage struct {
 5    Tags []*plumbing.Reference
 6    Branches []*plumbing.Reference
 7}
 8%}
 9
10{% func (g *GitItemRefsPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Refs) %}{% endfunc %}
11
12{% func (g *GitItemRefsPage) GitContent(name, ref string) %}
13<div class="row">
14  <div class="col-md-8">
15    {% if len(g.Tags) > 0 %}
16    <div class="event-list">
17      {% for _, t := range g.Tags %}
18      <div class="row event me-md-2">
19          <div class="col-4">
20           {%s t.Name().Short() %}
21          </div>
22          <div class="col-8">
23            <div class="float-end">
24              <a href="/{%s name %}/archive/{%s t.Name().Short() %}.tar.gz">tar.gz</a>
25              <a href="/{%s name %}/tree/{%s t.Name().Short() %}/">tree</a>
26              <a href="/{%s name %}/log/{%s t.Name().Short() %}/">log</a>
27            </div>
28          </div>
29      </div>
30      {% endfor %}
31    </div>
32    {% else %}
33        <p> No tags </p>
34    {% endif %}
35  </div>
36  <div class="col-md-4">
37    <div class="event-list">
38      {% for _, b := range g.Branches %}
39      <div class="row event">
40          <div class="col-4">
41           {%s b.Name().Short() %}
42          </div>
43          <div class="col-8">
44            <div class="float-end">
45              <a href="/{%s name %}/archive/{%s b.Name().Short() %}.tar.gz">tar.gz</a>
46              <a href="/{%s name %}/tree/{%s b.Name().Short() %}/">tree</a>
47              <a href="/{%s name %}/log/{%s b.Name().Short() %}/">log</a>
48            </div>
49          </div>
50      </div>
51      {% endfor %}
52    </div>
53  </div>
54</div>
55{% endfunc %}