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

<table>
  <% for (const issue of it.issues) { %>
    <tr>
      <td>#<%= issue.number %></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 %>
        <% } %>
      </td>
      <td class="timestamp"><time title="<%= issue.createdAt %>"><%= issue.createdAt.split("T")[0] %></time></td>
    </tr>
  <% } %>
</table>