2020-04-13 10:50:30 +02:00
|
|
|
<div style="padding-top: 15px;">
|
|
|
|
<% posts.map(post => { %>
|
2020-04-18 09:55:55 +02:00
|
|
|
<% if (!post.content.text) return %>
|
2020-04-13 10:50:30 +02:00
|
|
|
<div class="post">
|
|
|
|
<div>
|
2020-04-18 09:55:55 +02:00
|
|
|
<a href="<%= profileUrl(post.author) %>">
|
|
|
|
<img src="<%= profileImageUrl(post.authorProfile) %>" class="post-profile-pic" />
|
|
|
|
</a>
|
2020-04-13 10:50:30 +02:00
|
|
|
</div>
|
|
|
|
<div class="post-content">
|
2020-04-19 10:08:15 +02:00
|
|
|
<a href="<%= profileUrl(post.author) %>" class="no-link-style">
|
|
|
|
<b><%= post.authorProfile.name %></b>
|
|
|
|
</a>
|
2020-04-21 09:12:24 +02:00
|
|
|
<% let text = post.content.text %>
|
|
|
|
<% if (typeof dont_cut == "undefined") { %>
|
|
|
|
<% text = post.content.text.slice(0, 140) %>
|
|
|
|
<% if (post.content.text.length > 140) text += "..." %>
|
|
|
|
<% } %>
|
2020-04-19 10:08:15 +02:00
|
|
|
<% text.split("\n").map((line, index) => { %>
|
|
|
|
<%- index > 0 ? "<br />" : "" %><%= line %>
|
|
|
|
<% }) %>
|
2020-04-13 10:50:30 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% }) %>
|
|
|
|
</div>
|