2020-04-19 10:08:15 +02:00
|
|
|
<%- include('_header', { main_class: "screen-center" }) %>
|
2020-04-05 18:38:49 +02:00
|
|
|
|
2020-04-06 10:16:50 +02:00
|
|
|
<div class="columns">
|
2020-04-20 00:27:51 +02:00
|
|
|
<div class="wall" style="border-radius: 5px 0 0 5px">
|
2020-04-19 09:39:11 +02:00
|
|
|
<div class="columns">
|
2020-04-20 00:27:51 +02:00
|
|
|
<div>
|
|
|
|
<img class="profile-pic" src="<%= profileImageUrl(profile) %>" />
|
|
|
|
</div>
|
2020-04-19 09:39:11 +02:00
|
|
|
<div style="padding-left: 20px">
|
2020-04-19 12:50:16 +02:00
|
|
|
<div class="columns" style="align-items: center;">
|
|
|
|
<h1><%= profile.name %></h1>
|
|
|
|
<% if (friendshipStatus == "friends") { %>
|
|
|
|
<div style="margin-left: 14px">✅ Friends</div>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
2020-04-25 13:56:42 +02:00
|
|
|
<div style="margin-bottom: 20px;"><%- escapeMarkdown(profile.description || "").substr(0, 70) %></div>
|
2020-04-05 18:38:49 +02:00
|
|
|
|
2020-04-19 23:58:51 +02:00
|
|
|
<% if (friendshipStatus == "request_received") { %>
|
2020-04-20 00:27:51 +02:00
|
|
|
<p><%= profile.name %> sent you a friendship request</p>
|
2020-04-20 00:31:13 +02:00
|
|
|
<% } else if (friendshipStatus == "request_rejected") { %>
|
2020-04-20 00:27:51 +02:00
|
|
|
<p>You rejected <%= profile.name %> friendship request</p>
|
2020-04-19 23:58:51 +02:00
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<div class="columns profile-actions">
|
2020-04-23 22:46:25 +02:00
|
|
|
<%- include('_friendship_button') %>
|
2020-04-19 12:50:16 +02:00
|
|
|
|
2020-04-19 23:58:51 +02:00
|
|
|
<button class="button-yellow js-compose-secret-message" style="margin-left: 5px" data-url="<%= profileUrl(profile.id, "/publish_secret") %>">
|
2020-04-23 22:46:25 +02:00
|
|
|
🤫 Secret Message
|
2020-04-19 12:50:16 +02:00
|
|
|
</button>
|
2020-04-19 23:20:21 +02:00
|
|
|
<%- include('secrets/_compose_single') %>
|
2020-04-19 09:39:11 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-12 11:39:51 +02:00
|
|
|
</div>
|
2020-04-11 18:03:58 +02:00
|
|
|
|
2020-04-19 12:50:16 +02:00
|
|
|
<form action="<%= profileUrl(profile.id, "/publish") %>" method="POST" style="padding-top: 20px;">
|
2020-04-23 22:46:25 +02:00
|
|
|
<textarea name="message" class="compose-post" placeholder="Write something to <%= profile.name %>..."></textarea>
|
2020-04-13 10:50:30 +02:00
|
|
|
<div class="reverse-columns" style="margin-top: 10px">
|
|
|
|
<input type="submit" value="Publish" />
|
|
|
|
</div>
|
2020-04-08 08:44:23 +02:00
|
|
|
</form>
|
|
|
|
|
2020-04-13 10:50:30 +02:00
|
|
|
<h2 style="margin: 0"><%= profile.name %>'s Wall</h2>
|
2020-04-22 22:15:18 +02:00
|
|
|
<div style="padding-top: 15px;">
|
|
|
|
<% if (posts.length == 0) { %>
|
2020-04-20 00:27:51 +02:00
|
|
|
<div class="post">
|
|
|
|
No posts yet
|
|
|
|
</div>
|
2020-04-22 22:15:18 +02:00
|
|
|
<% } else { %>
|
|
|
|
<%- include('_posts', { posts }) %>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
2020-04-06 10:16:50 +02:00
|
|
|
</div>
|
2020-04-19 09:39:11 +02:00
|
|
|
|
|
|
|
<div class="friends-communities">
|
2020-04-19 10:08:15 +02:00
|
|
|
<h2>Friends</h2>
|
2020-04-19 09:39:11 +02:00
|
|
|
<%- include('_friends', { friends: friends.friends }) %>
|
|
|
|
</div>
|
2020-04-06 10:16:50 +02:00
|
|
|
</div>
|
2020-04-05 18:38:49 +02:00
|
|
|
|
|
|
|
<%- include('_footer') %>
|