mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-01 03:25:04 +03:00
58 lines
No EOL
1.2 KiB
Text
58 lines
No EOL
1.2 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<%- include("extra/header", {title: member.name }) %>
|
|
|
|
<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>
|
|
|
|
<% if (user?.admin) {%>
|
|
<form action="/admin/" method="POST">
|
|
<input name="userid" type="hidden" value="<%= member.id %>"></input>
|
|
<button class="buyuk" type="submit">Make admin!</button>
|
|
|
|
</form>
|
|
|
|
<form action="/users/<%= member.id %>/delete" method="POST">
|
|
<button class="buyuk" type="submit">Delete user!</button>
|
|
</form>
|
|
<% }; %>
|
|
|
|
<%- include("extra/footer") %>
|
|
</body>
|
|
|
|
</html> |