summaryrefslogtreecommitdiff
path: root/cgithub/views/pulls.eta
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-05-27 14:02:36 -0400
committerJoe Mou <dev@mou.fo>2026-05-27 23:38:34 -0400
commit745ac9d83234cb060bf802527efd90d301ecc491 (patch)
tree63ff86be00a976e5a45c8905e06b51b37f53eded /cgithub/views/pulls.eta
parentc57123139794c3ef174b62c6bd2a54a60bbf3327 (diff)
Pull request index
Diffstat (limited to 'cgithub/views/pulls.eta')
-rw-r--r--cgithub/views/pulls.eta15
1 files changed, 15 insertions, 0 deletions
diff --git a/cgithub/views/pulls.eta b/cgithub/views/pulls.eta
new file mode 100644
index 0000000..9ec5ca1
--- /dev/null
+++ b/cgithub/views/pulls.eta
@@ -0,0 +1,15 @@
+<% layout("./layout"); it.searchType = "pullrequests" %>
+
+<table>
+ <% for (const pull of it.pulls) { %>
+ <tr>
+ <td>#<%= pull.number %></td>
+ <td>
+ <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/pull/<%= pull.number %>">
+ <%= pull.title %>
+ </a>
+ </td>
+ <td class="timestamp"><time title="<%= pull.createdAt %>"><%= pull.createdAt.split("T")[0] %></time></td>
+ </tr>
+ <% } %>
+</table>