2020-04-21 09:12:24 +02:00
|
|
|
<div class="columns" style="justify-content: space-between; align-items: baseline; padding-bottom: 5px">
|
|
|
|
<h2>Topics</h2>
|
|
|
|
<a class="button" href="/communities/<%= community.name %>/new">New Topic</a>
|
2020-04-21 08:41:10 +02:00
|
|
|
</div>
|
2020-04-21 23:13:55 +02:00
|
|
|
<% posts.map(post => { %>
|
2020-04-21 09:12:24 +02:00
|
|
|
<a href="/communities/<%= community.name %>/<%= post.key.replace("%", "") %>" class="columns community-topic-link">
|
|
|
|
<div class="community-topic-name">
|
|
|
|
<%= topicTitle(post.value) %>
|
2020-04-21 08:41:10 +02:00
|
|
|
</div>
|
2020-04-21 09:12:24 +02:00
|
|
|
<div style="min-width: 110px; text-align: right;">💬 <%= post.value.replies.length %> replies</div>
|
|
|
|
</a>
|
|
|
|
<% }) %>
|