68 lines
2.4 KiB
Plaintext
68 lines
2.4 KiB
Plaintext
<%- include('_header') %>
|
|
|
|
<div class="columns">
|
|
<div class="about">
|
|
<img class="profile-pic" src="<%= profileImageUrl(profile) %>" />
|
|
<h1><%= profile.name %></h1>
|
|
|
|
<%= profile.description %>
|
|
|
|
<%- include('_friends', { friends }) %>
|
|
</div>
|
|
|
|
<div class="wall">
|
|
<% if (vanishingMessages.length > 0) { %>
|
|
<div class="js-vanishing-messages">
|
|
<h2>Vanishing Messages</h2>
|
|
<div class="notifications">
|
|
<% vanishingMessages.reverse().map(message => { %>
|
|
<span>
|
|
<button class="notification-box js-vanishing-message" data-key="<%= message.key %>">
|
|
<div><img src="<%= profileImageUrl(message.value.authorProfile) %>" class="post-profile-pic" /></div>
|
|
<div><%= message.value.authorProfile.name %></div>
|
|
</button>
|
|
<div class="overlay"></div>
|
|
<div class="modal">
|
|
<a href="<%= profileUrl(message.value.authorProfile.id) %>" class="modal-header">
|
|
<img src="<%= profileImageUrl(message.value.authorProfile) %>" class="post-profile-pic" style="padding-right: 10px" />
|
|
<%= message.value.authorProfile.name %>
|
|
</a>
|
|
<div class="modal-body">
|
|
<%= message.value.content.text %>
|
|
</div>
|
|
<div class="modal-footer">
|
|
after you close this box the message will be gone forever
|
|
<button class="modal-close">Close</button>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
<% }) %>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if (friends.requestsReceived.length) { %>
|
|
<h2>Friend Requests</h2>
|
|
<div class="notifications">
|
|
<% friends.requestsReceived.map(friend => { %>
|
|
<a href="<%= profileUrl(friend.id) %>" class="notification-box">
|
|
<div><img src="<%= profileImageUrl(friend) %>" class="post-profile-pic" /></div>
|
|
<div><%= friend.name %></div>
|
|
</a>
|
|
<% }) %>
|
|
</div>
|
|
<% } %>
|
|
|
|
<form action="/publish" method="POST" style="padding-top: 20px;">
|
|
<textarea name="message" class="compose-post"></textarea>
|
|
<div class="reverse-columns" style="margin-top: 10px">
|
|
<input type="submit" value="Publish" />
|
|
</div>
|
|
</form>
|
|
|
|
<h2 style="margin: 0">Your Wall</h2>
|
|
<%- include('_posts', { posts }) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%- include('_footer') %> |