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