diff options
| author | Joe Mou <dev@mou.fo> | 2026-09-21 22:15:24 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-09-25 01:43:53 -0400 |
| commit | 1514865ec8911c26612e68048f84c6c8be92449d (patch) | |
| tree | 07a24c2b0536e4fd3b69c1cbc2a424e9ee25aa8a /views | |
| parent | fd1c054c3c10dceb1a8a355c74a0d9e9077aae19 (diff) | |
Show issue and pull request status and labels in their lists
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'views')
| -rw-r--r-- | views/_issueState.eta | 1 | ||||
| -rw-r--r-- | views/issues.eta | 7 | ||||
| -rw-r--r-- | views/pulls.eta | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/views/_issueState.eta b/views/_issueState.eta new file mode 100644 index 0000000..7ac5ad7 --- /dev/null +++ b/views/_issueState.eta @@ -0,0 +1 @@ +<span class="pill state state-<%= it.state.toLowerCase() %>"><%= it.state.charAt(0) + it.state.slice(1).toLowerCase() %></span> diff --git a/views/issues.eta b/views/issues.eta index 754afb8..784557b 100644 --- a/views/issues.eta +++ b/views/issues.eta @@ -4,14 +4,13 @@ <% for (const issue of it.issues) { %> <tr> <td>#<%= issue.number %></td> + <td><%~ include("./_issueState.eta", { state: issue.state }) %></td> <td> <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/issues/<%= issue.number %>"> <%= issue.title %> </a> - </td> - <td> - <% if (issue.commentCount > 0) { %> - <img src="/static/icons/link.svg" alt="comments" class="icon"> <%= issue.commentCount %> + <% for (const label of issue.labels) { %> + <%~ include("./_issueLabel.eta", { label }) %> <% } %> </td> <td class="timestamp"><time title="<%= issue.createdAt %>"><%= issue.createdAt.split("T")[0] %></time></td> diff --git a/views/pulls.eta b/views/pulls.eta index 697f6b1..bdd6b67 100644 --- a/views/pulls.eta +++ b/views/pulls.eta @@ -4,10 +4,14 @@ <% for (const pull of it.pulls) { %> <tr> <td>#<%= pull.number %></td> + <td><%~ include("./_issueState.eta", { state: pull.state }) %></td> <td> <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/pull/<%= pull.number %>"> <%= pull.title %> </a> + <% for (const label of pull.labels) { %> + <%~ include("./_issueLabel.eta", { label }) %> + <% } %> </td> <td class="timestamp"><time title="<%= pull.createdAt %>"><%= pull.createdAt.split("T")[0] %></time></td> </tr> |
