diff options
| author | Joe Mou <dev@mou.fo> | 2026-01-28 22:41:00 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-01-28 23:03:09 -0500 |
| commit | 94fcda59a064b5e8952d1bccb6b9a153c39acda1 (patch) | |
| tree | 849ac2b7f33f62f774d145856eaee5267e3593ae /cgithub/views/commits.eta | |
| parent | 631bc70d94cd12d0432cca1a220a3642eea6976a (diff) | |
Commits list
Diffstat (limited to 'cgithub/views/commits.eta')
| -rw-r--r-- | cgithub/views/commits.eta | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cgithub/views/commits.eta b/cgithub/views/commits.eta new file mode 100644 index 0000000..2ddcba3 --- /dev/null +++ b/cgithub/views/commits.eta @@ -0,0 +1,25 @@ +<% layout("./layout.eta") %> + +<%~ include("./_nav.eta", {...it, isTree: false}) %> + +<% 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> + <% } %> +<% } %> |
