2020-04-23 22:46:25 +02:00
|
|
|
<div class="columns">
|
|
|
|
<div><img class="profile-pic" src="<%= profileImageUrl(profile) %>" style="display:block" /></div>
|
2020-04-25 12:28:47 +02:00
|
|
|
<div style="padding-left: 10px; max-width: calc(100% - 128px)">
|
2020-04-23 22:46:25 +02:00
|
|
|
<h1><%= profile.name %></h1>
|
|
|
|
|
2020-04-25 13:56:42 +02:00
|
|
|
<%- escapeMarkdown(profile.description || "").substr(0, 70) %>
|
2020-04-23 22:46:25 +02:00
|
|
|
|
|
|
|
<% if (friendshipStatus == "request_received") { %>
|
|
|
|
<p><%= profile.name %> sent you a friendship request</p>
|
2020-04-24 09:26:24 +02:00
|
|
|
<% } else if (friendshipStatus == "request_rejected") { %>
|
2020-04-23 22:46:25 +02:00
|
|
|
<p>You rejected <%= profile.name %> friendship request</p>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<div class="columns profile-actions" style="margin-top: 10px;">
|
|
|
|
<%- include('../_friendship_button') %>
|
|
|
|
|
|
|
|
<button class="button-yellow js-compose-secret-message" style="margin-left: 5px" data-url="<%= profileUrl(profile.id, "/publish_secret") %>">
|
|
|
|
🤫 Secret
|
|
|
|
</button>
|
|
|
|
<%- include('secrets/_compose_single') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tabs" style="margin-top: 20px; padding: 0 10px;">
|
2020-04-24 09:26:24 +02:00
|
|
|
<button class="tab-title tab-selected js-tab-button">
|
2020-04-23 22:46:25 +02:00
|
|
|
Wall
|
|
|
|
</button>
|
2020-04-24 09:26:24 +02:00
|
|
|
<button class="tab-title js-tab-button">
|
2020-04-23 22:46:25 +02:00
|
|
|
Friends
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="tab-content">
|
2020-04-24 09:26:24 +02:00
|
|
|
<div class="tab-item js-tab-item">
|
2020-04-23 22:46:25 +02:00
|
|
|
<% if (posts.length > 0) { %>
|
2020-04-26 11:13:04 +02:00
|
|
|
<form action="<%= profileUrl(profile.id, "/publish") %>" method="POST" style="padding: 0px 8px 5px 8px;">
|
2020-04-23 22:46:25 +02:00
|
|
|
<textarea name="message" class="compose-post js-compose-post" placeholder="Write something to <%= profile.name %>..."></textarea>
|
|
|
|
<div class="reverse-columns">
|
|
|
|
<input type="submit" value="Publish" style="display: none; margin: 5px 0" class="js-publish-button" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<%- include('../_posts', { posts }) %>
|
|
|
|
<% } else { %>
|
|
|
|
<div style="padding-top: 15px;">
|
|
|
|
<div class="post">
|
|
|
|
No posts yet
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
2020-04-24 09:26:24 +02:00
|
|
|
<div class="tab-item js-tab-item" style="display: none; padding: 10px">
|
|
|
|
<%- include('_friends', { friends: friends.friends }) %>
|
|
|
|
</div>
|
2020-04-23 22:46:25 +02:00
|
|
|
</div>
|