akf-forum/views/index.ejs

56 lines
1.4 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
2022-08-28 19:03:32 +03:00
<body >
<link rel="stylesheet" href="/css/user.css" />
<%- 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-08-28 19:03:32 +03:00
<div class="content">
<div class="box">
<h2 class="box-title">Message count:</h2>
<h2 class="box-title"> <%= messages %></h2>
</div>
<div class="box">
<h2 class="box-title">User count: </h2>
<h2 class="box-title"> <%= users %> </h2>
</div>
<div class="box">
<h2 class="box-title">Thread count:</h2>
<h2 class="box-title"><%= threads %></h2>
</div>
<div class="box">
<h2 class="box-title"> Memory usage: </h2>
<h2 class="box-title"><%= mem.toFixed(2); %> MB</h2>
</div>
</div>
2022-03-13 16:16:46 +03:00
</body>
2022-04-06 22:49:16 +03:00
</html>