2020-04-04 17:15:43 +02:00
|
|
|
<%- include('_header') %>
|
|
|
|
|
|
|
|
<form action="publish" method="POST">
|
|
|
|
<textarea name="message"></textarea>
|
|
|
|
<input type="submit" value="Send" />
|
|
|
|
</form>
|
2020-04-05 12:36:01 +02:00
|
|
|
|
2020-04-05 13:29:05 +02:00
|
|
|
<% posts.map(entry => { %>
|
|
|
|
<div><%= entry.authorName %>: <%= entry.content.text %></div>
|
|
|
|
<hr />
|
2020-04-04 17:15:43 +02:00
|
|
|
<% }) %>
|
|
|
|
|
2020-04-05 13:29:05 +02:00
|
|
|
<h2>All People</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% people.map(person => { %>
|
|
|
|
<li><%= person.content.name %> (<%= person.author.slice(0, 8) %>)</li>
|
|
|
|
<% }) %>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h2>Friends</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% friends.map(friend => { %>
|
|
|
|
<li><%= friend.content.contactName %> (<%= friend.content.contact.slice(0, 8) %>)</li>
|
|
|
|
<% }) %>
|
|
|
|
</ul>
|
|
|
|
|
2020-04-04 17:15:43 +02:00
|
|
|
<%- include('_footer') %>
|