cerrado @ cb9036aab96895ddf03cab68f75d3356f5227968

 1{% import "github.com/go-git/go-git/v5/plumbing/object" %}
 2
 3{% code
 4type GitItemLogPage struct {
 5    Commits []*object.Commit
 6    Next *object.Commit
 7}
 8%}
 9
10{% func (g *GitItemLogPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Log) %}{% endfunc %}
11
12{% func (g *GitItemLogPage) GitContent(name, ref string) %}
13<div class="event-list">
14  {% for _, c := range g.Commits %}
15  {%= Commit(name, c, false) %}
16  {% endfor %}
17  {% if g.Next != nil %}
18  <a href="/{%s name %}/log/{%s ref %}/?from={%s g.Next.Hash.String() %}"  class="btn btn-primary">Next</a>
19  {% endif %}
20
21</div>
22{% endfunc %}