blob: a28e7ad52cbd51c2cb6509b3f008116b61e7d8be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{% import "github.com/go-git/go-git/v5/plumbing/object" %}
{% code
type GitItemLogPage struct {
Commits []*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 %}
<div class="row event">
<div class="col-xxl-2">
{%s TimeFormat(c.Committer.When) %}
</div>
<div class="col-xxl-7 code-view">
<pre>{%s c.Message %}</pre>
</div>
<div class="col-xxl-3">
<small>{%s c.Committer.Name %} <{%s c.Committer.Email %}></small>
</div>
</div>
{% endfor %}
</div>
{% endfunc %}
|