aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemcommit.qtpl
blob: 7de1bdbf1dc5ba9373bae07d3ad904f55792449d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% import "git.gabrielgio.me/cerrado/pkg/git" %}

{% code
type GitItemCommitPage struct {
    Commit *git.CommitReference
    Diff []byte
}
%}

{% 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>{%z= g.Diff %}</pre>
</div>
{% endfunc %}