akf-forum/views/index.ejs

54 lines
1.3 KiB
Text
Raw Normal View History

2022-03-13 16:16:46 +03:00
<!DOCTYPE html>
<html lang="en">
2022-08-26 20:22:46 +03:00
<%- include("extra/meta", {title: "Welcome to the Akf-forum!" }) %>
2022-03-22 21:25:09 +03:00
2022-08-24 22:39:38 +03:00
<body style="text-align: center;">
<%- include("extra/navbar") %>
<% if (user) { %>
<h1 style="color: #4d18e6;">Welcome, <div class="box-username"><%= user.name %>
<div class="avatar"><img src="<%=user.avatar %>"></div>
</div>
2022-03-22 21:25:09 +03:00
<br>
2022-04-06 22:49:16 +03:00
You can log out of the site here:
<a href="/login" class="btn-outline-primary">LOGOUT</a>
2022-03-13 16:16:46 +03:00
</h1>
<br>
2022-04-03 21:01:55 +03:00
<% } else { %>
<h1 style="color: #4d18e6;">Welcome, Guest!<br>You can press the button to register:
<a href="/register" class="btn-outline-primary">REGISTER</a>
2022-04-03 21:01:55 +03:00
</h1>
<% } %>
<h1 style="color: #606060;">Statistics:</h1>
2022-03-13 16:16:46 +03:00
<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>
</body>
2022-04-06 22:49:16 +03:00
</html>