aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemcommit.qtpl
blob: d223315dd0c8ffafe05139e1e21fd3f121dc78c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% import "github.com/go-git/go-git/v5/plumbing/object" %}

{% code
type GitItemCommitPage struct {
    Commit *object.Commit
    Diff string
}
%}

{% func (g *GitItemCommitPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Log) %}{% endfunc %}

{% func (g *GitItemCommitPage) GitContent(name, ref string) %}
<div class="event-list">
  {%= Commit(name, g.Commit, true) %}
</div>
<div class="code-view">
<pre>{%s g.Diff %}</pre>
</div>
{% endfunc %}