akf-forum/views/index.ejs

48 lines
1 KiB
Text
Raw Normal View History

2022-03-13 16:16:46 +03:00
<!DOCTYPE html>
<html lang="en">
2022-03-26 23:28:10 +03:00
<%- include("extra/header", {title: "Main page!" }) %>
2022-03-13 16:16:46 +03:00
<body>
2022-03-22 21:25:09 +03:00
2022-03-26 23:28:10 +03:00
<%- include("extra/navbar", {user}) %>
2022-03-22 21:25:09 +03:00
2022-03-13 16:16:46 +03:00
<h1>Welcome, <a href=<%=user.getLink() %>> <%= user.name %></a>
<img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
2022-03-22 21:25:09 +03:00
<br>
You can press logout here:
<button onclick="window.location.href = '/login/'">LOGOUT</button>
2022-03-13 16:16:46 +03:00
</h1>
<br>
<h1>Statistics:</h1>
<ul>
<li>
2022-03-22 21:25:09 +03:00
<h3>Message count: <b>
<%= messages %>
</b></h3>
2022-03-13 16:16:46 +03:00
</li>
<li>
2022-03-22 21:25:09 +03:00
<h3>User count: <b>
<%= users %>
</b></h3>
2022-03-13 16:16:46 +03:00
</li>
<li>
2022-03-22 21:25:09 +03:00
<h3>Thread count: <b>
<%= threads %>
</b></h3>
2022-03-13 16:16:46 +03:00
</li>
<li>
2022-03-22 21:25:09 +03:00
<h3>Memory usage: <b>
<%= mem.toFixed(2); %> MB
</b></h3>
2022-03-13 16:16:46 +03:00
</li>
</ul>
2022-03-26 23:28:10 +03:00
<%- include("extra/footer") %>
2022-03-13 16:16:46 +03:00
</body>
2022-02-26 21:12:54 +03:00
</html>