-
Notifications
You must be signed in to change notification settings - Fork 5
/
admin.ejs
executable file
·32 lines (32 loc) · 1.11 KB
/
admin.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<%- include("./includes/header.ejs") %>
</head>
<body>
<%- include("./includes/nav.ejs") %>
<main>
<div class="pt-3 container centered">
<h1>Users</h1>
<div class="pt-4">
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Email</th>
<th scope="col">Username</th>
<th scope="col">Link</th>
</tr>
</thead>
<% users.forEach(user => { %>
<tbody>
<tr>
<th scope="row"><%= user.name %></th>
<td><%= user.email %></td>
<td><%= user.username %></td>
<td><a href="/admin/user/<%= user._id %>/links">Links</a></td>
</tr>
</tbody>
<% }) %>
</table>
</div>
</div>
</main>
<%- include("./includes/footer.ejs") %>