feedless/app/views/mobile/friends.ejs

20 lines
660 B
Plaintext
Raw Normal View History

<div class="pink-background">
2020-04-23 09:52:53 +02:00
<% if (friends.requestsReceived.length) { %>
<h2>Friend Requests</h2>
<div style="margin-bottom: 30px">
<%- include('_friends', { friends: friends.requestsReceived }) %>
2020-04-23 09:52:53 +02:00
</div>
<% } %>
<h2>Friends</h2>
2020-04-23 22:46:25 +02:00
<%- include('_friends', { friends: friends.friends }) %>
2020-04-25 08:34:36 +02:00
<% if (friends.friends.length == 0) { %>
<p>You don't have any friends yet 🙁</p>
<p>Use the search or look in communities to find some</p>
<% } %>
2020-04-23 09:52:53 +02:00
2020-04-25 08:34:36 +02:00
<% if (friends.requestsSent.length > 0) { %>
<h2 style="margin-top: 30px">Requests Sent</h2>
<%- include('_friends', { friends: friends.requestsSent }) %>
<% } %>
2020-04-23 09:52:53 +02:00
</div>