This commit is contained in:
biglyderv 2024-11-25 14:12:44 -05:00
parent bd73d0e136
commit a063ecbdb2
4 changed files with 29 additions and 13 deletions

10
views/user-clickable.ejs Normal file
View file

@ -0,0 +1,10 @@
<div>
<img src='/pfp/<%= user %>.png' class='avatar-img'>
<div>
<div><b>
<a class='link' href='/client/user?id=<%= user %>'>
<%= user %>
</a>
</b></div>
</div>
</div>

View file

@ -20,21 +20,21 @@
<summary>
<%= following.length %> following
</summary>
<% for (let user of following) { %>
<a class='link' href='/client/user?id=<%= user.target %>'>
<%= user.target %>
</a>
<%} %>
<div class='flex-row'>
<% for (let user of following) { %>
<%- include('user-clickable.ejs', {user: user.username}) %>
<%} %>
</div>
</details>
<details>
<summary>
<%= followers.length %> followers
</summary>
<% for (let user of followers) { %>
<a class='link' href='/client/user?id=<%= user.username %>'>
<%= user.username %>
</a>
<%} %>
<div class='flex-direction: row;'>
<% for (let user of followers) { %>
<%- include('user-clickable.ejs', {user: user.username}) %>
<%} %>
</div>
</details>
</div>
<h1 class='content-header'>Uploaded Videos</h1>