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

{% func Commit(name string, c *object.Commit) %}
  <div class="row event">
    <div class="row">
      <div class="col-md">
       <a title="{%s c.Hash.String() %}" href="/{%s name %}/commit/{%s c.Hash.String() %}">{%s c.Hash.String()[0:8] %}</a>
      </div>
      <div class="col-md text-md-end">
       <a title="{%s c.Committer.Email %}" href="mailto:{%s c.Committer.Email %}">{%s c.Committer.Name %}</a>
      </div>
    </div>
    <div class="code-view">
     <pre>{%s c.Message %}</pre>
    </div>
  </div>
{% endfunc %}