2022-03-13 16:16:46 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
2022-04-06 21:38:25 +03:00
|
|
|
<%- include("extra/header", {title: member.name }) %>
|
2022-03-26 23:28:10 +03:00
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<%- include("extra/navbar", {user}) %>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<h1>Avatar:</h1>
|
|
|
|
<img style="width:256px;height:256px;" src=<%=member.avatar %> alt=<%= member.name %>>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<h2>Name: <%= member.name %>
|
|
|
|
</h2>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<h2>Created at:
|
|
|
|
<%= new Date(member.time).toLocaleString() %>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<h2>Is admin? <%= member.admin ? "Yes" : "No" %>
|
|
|
|
</h2>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<h2> Message: <%= counts.message %>
|
|
|
|
</h2>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<h2> Thread: <%= counts.thread %>
|
|
|
|
</h2>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2022-04-03 21:01:55 +03:00
|
|
|
<% if (user?.admin) {%>
|
2022-03-26 23:28:10 +03:00
|
|
|
<form action="/admin/" method="POST">
|
|
|
|
<input name="userid" type="hidden" value="<%= member.id %>"></input>
|
2022-04-06 22:49:16 +03:00
|
|
|
<button class="buyuk" type="submit">Give admin permissions!</button>
|
2022-03-26 23:28:10 +03:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2022-04-03 19:55:33 +03:00
|
|
|
<form action="/users/<%= member.id %>/delete" method="POST">
|
2022-03-26 23:28:10 +03:00
|
|
|
<button class="buyuk" type="submit">Delete user!</button>
|
|
|
|
</form>
|
|
|
|
<% }; %>
|
|
|
|
|
2022-04-03 21:01:55 +03:00
|
|
|
<%- include("extra/footer") %>
|
2022-03-26 23:28:10 +03:00
|
|
|
</body>
|
2022-03-13 16:16:46 +03:00
|
|
|
|
2022-04-06 22:49:16 +03:00
|
|
|
</html>
|