aboutsummaryrefslogtreecommitdiff
path: root/views/commits.eta
diff options
context:
space:
mode:
Diffstat (limited to 'views/commits.eta')
-rw-r--r--views/commits.eta25
1 files changed, 25 insertions, 0 deletions
diff --git a/views/commits.eta b/views/commits.eta
new file mode 100644
index 0000000..2ddcba3
--- /dev/null
+++ b/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>
+ <% } %>
+<% } %>