2020-04-25 12:01:22 +02:00
|
|
|
<% if (posts.length > 0) { %>
|
2020-04-25 12:18:00 +02:00
|
|
|
<div class="pink-background" style="flex-grow: 0;">
|
2020-04-25 12:01:22 +02:00
|
|
|
<h2>
|
|
|
|
<a href="/communities/<%= community.name %>" style="color: #600; text-decoration: none;">
|
2020-04-25 12:42:29 +02:00
|
|
|
⬅ #<%= community.name %>
|
2020-04-25 12:01:22 +02:00
|
|
|
</a>
|
|
|
|
</h2>
|
2020-04-25 13:56:42 +02:00
|
|
|
<h1><%- topicTitle(posts[0].value) %></h1>
|
2020-04-25 12:01:22 +02:00
|
|
|
</div>
|
2020-04-26 19:37:41 +02:00
|
|
|
<%- include("../../shared/_posts", { posts: posts.map(x => x.value), dont_cut: true }) %>
|
2020-04-25 12:01:22 +02:00
|
|
|
|
|
|
|
<form action="/communities/<%= community.name %>/<%= posts[0].key.replace("%", "") %>/publish" method="POST" style="padding: 14px; border-top: 1px solid #ddd;">
|
|
|
|
<label>
|
|
|
|
Reply:
|
|
|
|
<textarea name="reply" class="compose-post" style="margin: 10px 0 0 0; height: 80px"></textarea>
|
|
|
|
</label>
|
|
|
|
<div class="reverse-columns" style="margin-top: 10px">
|
|
|
|
<input type="submit" value="Publish" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<% } else { %>
|
2020-04-25 12:18:00 +02:00
|
|
|
<div class="pink-background">
|
2020-04-25 12:01:22 +02:00
|
|
|
<h1 style="padding: 14px">404 topic not found</h1>
|
|
|
|
</div>
|
|
|
|
<% } %>
|