summaryrefslogtreecommitdiff
path: root/cgithub/views/commits.eta
blob: 5cf0bebc67f8ba16c9a56aa68c87bd0b54b181af (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
<% layout("./layout.eta") %>

<%~ include("./_nav.eta", {...it, view: "commits"}) %>

<% for (const group of it.commitGroups) { %>
  <h3><%= group.title %></h3>
  <% for (const commit of group.commits) { %>
    <div class="commit">
      <div>
        <div>
          <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/commit/<%= commit.oid %>"><%= commit.shortMessage %></a>
        </div>
        <div class="commit-author">
          by
          <% for (const author of commit.authors) { %>
            <a href="/<%= author.login %>"><%= author.login %></a>
          <% } %>
        </div>
      </div>
      <div class="commit-sha">
        <code><%= commit.oid.substring(0, 7) %></code>
      </div>
    </div>
  <% } %>
<% } %>