27 lines
634 B
Plaintext
27 lines
634 B
Plaintext
<%- include('_header') %>
|
|
|
|
<h1>Home</h1>
|
|
|
|
<form action="/publish" method="POST">
|
|
<textarea name="message"></textarea>
|
|
<input type="submit" value="Send" />
|
|
</form>
|
|
|
|
<% posts.map(entry => { %>
|
|
<div><%= entry.authorProfile.name %> (<%= entry.author.slice(0, 8) %>): <%= entry.content.text %></div>
|
|
<hr />
|
|
<% }) %>
|
|
|
|
<h2>Friends</h2>
|
|
|
|
<ul>
|
|
<% friends.map(friend => { %>
|
|
<li>
|
|
<a href="<%= profileUrl(friend.content.contact) %>">
|
|
<%= friend.content.contactProfile && friend.content.contactProfile.name %> (<%= friend.content.contact.slice(0, 8) %>)
|
|
</a>
|
|
</li>
|
|
<% }) %>
|
|
</ul>
|
|
|
|
<%- include('_footer') %> |