2022-03-13 16:16:46 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
2022-08-26 16:27:29 +03:00
|
|
|
<%- include("extra/meta", {title: "User list!" }) %>
|
2022-03-26 23:28:10 +03:00
|
|
|
|
|
|
|
|
2022-08-26 16:27:29 +03:00
|
|
|
<body>
|
2022-09-01 15:19:12 +03:00
|
|
|
<link href='https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css' rel='stylesheet'>
|
2022-08-26 16:27:29 +03:00
|
|
|
<link rel="stylesheet" href="/css/users.css" />
|
2022-09-01 15:19:12 +03:00
|
|
|
<link rel="stylesheet" href="/css/pages.css" />
|
2022-09-17 00:51:52 +03:00
|
|
|
|
2022-08-26 16:27:29 +03:00
|
|
|
<%- include("extra/navbar") %>
|
|
|
|
<div class="users">
|
2023-05-09 13:28:45 +03:00
|
|
|
<% users.filter(member=> !member.deleted || user.admin ).forEach(member => { %>
|
2022-09-01 14:02:47 +03:00
|
|
|
<div style="display:flex;justify-content:center;">
|
2022-08-26 16:27:29 +03:00
|
|
|
<div class="user-box">
|
2023-05-09 13:28:45 +03:00
|
|
|
<img src="<%= member.avatar %>" class="user-box-img">
|
|
|
|
<div class="user-box-title"> <a href="<%= member.getLink() %>">
|
|
|
|
<% if (member.deleted) { %> <span style="color: var(--important);">[DELETED]</span><% } %>
|
|
|
|
<%= member.name %></a></div>
|
2022-08-26 16:27:29 +03:00
|
|
|
</div>
|
2022-09-01 14:02:47 +03:00
|
|
|
</div>
|
|
|
|
<% }); %>
|
2022-03-26 23:28:10 +03:00
|
|
|
|
2022-08-26 16:27:29 +03:00
|
|
|
</div>
|
2022-09-01 16:23:46 +03:00
|
|
|
<% if(typeof page === "number"){ %>
|
2022-09-01 15:19:12 +03:00
|
|
|
<div class="pagination">
|
|
|
|
<div class="back">
|
|
|
|
<% if (page > 0){ %>
|
|
|
|
<a href="/users?page=<%= page-1 %>" class='bx bxs-chevron-left'></a>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="numbers">
|
|
|
|
<% for(let i=0; i < pages; i++){ %>
|
|
|
|
<a class="number <%= i==page?'active':'' %>" href="/users?page=<%= i %>"><%= i+1 %></a>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="after">
|
|
|
|
<% if (pages-1 > page) { %>
|
|
|
|
<a href="/users?page=<%= page +1 %>" class='bx bxs-chevron-right'></a>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2022-09-01 16:23:46 +03:00
|
|
|
<% } %>
|
2022-09-17 00:51:52 +03:00
|
|
|
<%- include("extra/footer") %>
|
|
|
|
|
|
|
|
</body>
|
2022-09-01 16:23:46 +03:00
|
|
|
|
2022-09-17 00:51:52 +03:00
|
|
|
</html>
|