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 <div class="row event">
15 <div class="col-xxl-2">
16 {%s TimeFormat(c.Committer.When) %}
17 </div>
18 <div class="col-xxl-7 code-view">
19 <pre>{%s c.Message %}</pre>
20 </div>
21 <div class="col-xxl-3">
22 <small>{%s c.Committer.Name %} <{%s c.Committer.Email %}></small>
23 </div>
24 </div>
25 {% endfor %}
26</div>
27{% endfunc %}