1{% import "github.com/go-git/go-git/v5/plumbing/object" %}
2
3{% func Commit(name string, c *object.Commit) %}
4 <div class="row event">
5 <div class="row">
6 <div class="col-md">
7 <a title="{%s c.Hash.String() %}" href="/{%s name %}/commit/{%s c.Hash.String() %}">{%s c.Hash.String()[0:8] %}</a>
8 </div>
9 <div class="col-md text-md-end">
10 <a title="{%s c.Committer.Email %}" href="mailto:{%s c.Committer.Email %}">{%s c.Committer.Name %}</a>
11 </div>
12 </div>
13 <div class="code-view">
14 <pre>{%s c.Message %}</pre>
15 </div>
16 </div>
17{% endfunc %}