cerrado @ master

 1{% import "git.gabrielgio.me/cerrado/pkg/git" %}
 2{% import "git.gabrielgio.me/cerrado/pkg/humanize" %}
 3{% import "github.com/go-git/go-git/v5/plumbing/object" %}
 4
 5{% code
 6type GitItemRefPage struct {
 7    Reference *git.TagReference
 8    Commit *object.Commit
 9}
10%}
11
12{% func (g *GitItemRefPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Refs) %}{% endfunc %}
13
14{% func (g *GitItemRefPage) GitContent(name, ref string) %}
15<div class="event-list">
16  <div class="row event">
17    <div class="row">
18      <div class="col-md">
19       <a title="{%s g.Commit.Hash.String() %}" href="/{%s name %}/commit/{%s g.Commit.Hash.String() %}/">{%s g.Commit.Hash.String()[0:8] %}</a> —
20       <a title="{%s g.Commit.Committer.Email %}" href="mailto:{%s g.Commit.Author.Email %}">{%s g.Commit.Author.Name %}</a>
21      </div>
22      <div class="col-md text-md-center">
23       <a title="tar.gz for {%s g.Reference.ShortName() %}" href="/{%s name %}/archive/{%s g.Reference.ShortName() %}.tar.gz">tar.gz</a>
24      </div>
25      <div class="col-md text-md-end">
26        <a title="{%s g.Commit.Author.When.UTC().Format("2006-01-02 15:04:05")%} UTC">{%s humanize.Time(g.Commit.Author.When) %}</a>
27      </div>
28    </div>
29    <div class="code-view">
30     <pre>{%s g.Reference.Message() %}</pre>
31    </div>
32  </div>
33</div>
34{% endfunc %}