1{% import "github.com/go-git/go-git/v5/plumbing/object" %}
2
3{% code
4type GitItemLogPage struct {
5 Commits []*object.Commit
6}
7%}
8
9{% func (g *GitItemLogPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Log) %}{% endfunc %}
10
11{% func (g *GitItemLogPage) GitContent(name, ref string) %}
12<div class="event-list">
13 {% for _, c := range g.Commits %}
14 {%= Commit(name, c, false) %}
15 {% endfor %}
16</div>
17{% endfunc %}