aboutsummaryrefslogtreecommitdiff
path: root/views/issues.eta
blob: 784557b2eea9b5b9837c88fe8baa6db40470aab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<% layout("/layouts/repo.eta"); it.searchType = "issues" %>

<table>
  <% 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>
        <% 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>
    </tr>
  <% } %>
</table>