This commit is contained in:
biglyderv 2024-10-29 04:13:08 -04:00
parent 6e330feee6
commit d0cee1c24e
4 changed files with 29 additions and 13 deletions

View file

@ -63,8 +63,7 @@ async function iterate(req, res, index) {
} }
let dat = await routesI[cmd].run(req, res, {}); let dat = await routesI[cmd].run(req, res, {});
if (!dat && !res.headersSent) {
if (!dat) {
return await routes.client['e404'].run(req, res, {}); return await routes.client['e404'].run(req, res, {});
} }

View file

@ -19,6 +19,12 @@ body {
flex-direction: column flex-direction: column
} }
.flex-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
body { body {
align-items: center; align-items: center;
overflow-x: hidden; overflow-x: hidden;
@ -163,7 +169,8 @@ body {
} }
.progressbar, .progressbar,
.progressbar-div { .progressbar-div,
.avatar-img {
border-radius: var(--border-radius) border-radius: var(--border-radius)
} }

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