50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
<%- include('_header') %>
|
|
|
|
<div class="columns">
|
|
<div class="about">
|
|
<img class="profile-pic" src="<%= profileImageUrl(profile) %>" />
|
|
<h1><%= profile.name %></h1>
|
|
|
|
<%= profile.description %>
|
|
|
|
<h2>Friends</h2>
|
|
|
|
<ul>
|
|
<% friends.map(friend => { %>
|
|
<li>
|
|
<a href="<%= profileUrl(friend.content.contact) %>">
|
|
<%= friend.content.contactProfile?.name %> (<%= friend.content.contact.slice(0, 8) %>)
|
|
</a>
|
|
</li>
|
|
<% }) %>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="wall">
|
|
<h1><%= profile.name %>'s Wall</h1>
|
|
<!--
|
|
<h2>Leave <%= profile.name %> a message</h2>
|
|
<form action="<%= profileUrl(profile.id, "/publish") %>" method="POST">
|
|
<textarea name="message"></textarea>
|
|
<input type="submit" value="Send" />
|
|
</form> -->
|
|
|
|
<% posts.map(entry => { %>
|
|
<div class="post">
|
|
<div>
|
|
<img src="<%= profileImageUrl(entry.authorProfile) %>" class="post-profile-pic" />
|
|
</div>
|
|
<div class="post-content">
|
|
<div class="content-header">
|
|
<%= entry.authorProfile.name %>
|
|
</div>
|
|
<div class="content-body">
|
|
<%= entry.content.text.slice(0, 140) %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% }) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%- include('_footer') %> |