2022-03-13 16:16:46 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
2022-09-09 15:34:12 +03:00
|
|
|
<%- include("extra/meta", {title: "Welcome to the "+forum_name+"-forum!" }) %>
|
2022-03-22 21:25:09 +03:00
|
|
|
|
2022-08-24 22:39:38 +03:00
|
|
|
|
2022-09-01 14:02:47 +03:00
|
|
|
<body>
|
|
|
|
<link rel="stylesheet" href="/css/user.css" />
|
2022-08-28 19:03:32 +03:00
|
|
|
|
2022-08-26 19:39:25 +03:00
|
|
|
<%- include("extra/navbar") %>
|
|
|
|
|
2022-03-13 16:16:46 +03:00
|
|
|
|
2022-08-31 16:47:31 +03:00
|
|
|
|
2022-09-01 14:02:47 +03:00
|
|
|
<div class="content">
|
|
|
|
<% if (user) { %>
|
|
|
|
<h2 style="color: var(--main);">
|
|
|
|
<div class="box-username">Welcome, <%= user.name %>
|
|
|
|
<div class="avatar"><img src="<%=user.avatar %>"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
You can log out of the site here:
|
|
|
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<a href="/login" class="btn-outline-primary">LOGOUT</a>
|
|
|
|
<br>
|
|
|
|
<% } else { %>
|
|
|
|
<h2 style="color: var(--main);">Welcome, Guest!<br>You can press the button to register:
|
|
|
|
<a href="/register" class="btn-outline-primary">REGISTER</a>
|
|
|
|
|
|
|
|
</h2>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<h2 style="color: var(--second);">Statistics:</h2>
|
2022-03-13 16:16:46 +03:00
|
|
|
|
2022-09-01 14:02:47 +03:00
|
|
|
<div class="box">
|
|
|
|
<h2 class="box-title">Message count:</h2>
|
|
|
|
<h2 class="box-value"><%= messages %></h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<h2 class="box-title">User count: </h2>
|
|
|
|
<h2 class="box-value"><%= users %> </h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<h2 class="box-title">Thread count:</h2>
|
|
|
|
<h2 class="box-value"><%= threads %></h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<h2 class="box-title">Memory usage:</h2>
|
|
|
|
<h2 class="box-value"><%= mem.toFixed(2); %> MB</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<%- include("extra/footer") %>
|
|
|
|
|
|
|
|
</body>
|
2022-08-26 19:39:25 +03:00
|
|
|
|
2022-09-01 14:02:47 +03:00
|
|
|
</html>
|