blob: f87189efff08d603e0d9417cc694f1841f7992a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<%
layout("/layouts/repo.eta")
it.path = `discussions/${it.number}`
it.searchType = "discussions"
%>
<div class="box">
<h2><%~ it.titleHtml %></h2>
#<%= it.number %>
<% if (it.category) { %>
in <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/discussions/categories/<%= it.category.slug %>"><%= it.category.name %></a>
<% } %>
<% if (it.answerAnchor) { %>
<a class="answered pill" href="#<%= it.answerAnchor %>">Answered</a>
<% } %>
</div>
<%~ include("./_discussionComment.eta", { comment: it.body }) %>
<% if (it.answerAnchor) { %>
<a class="answered" href="#<%= it.answerAnchor %>">
<div class="box">↓ Show answer</div>
</a>
<% } %>
<% for (const comment of it.comments) { %>
<%~ include("./_discussionComment.eta", { comment }) %>
<% } %>
|