mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-26 13:20:41 +03:00
Main page is ok
This commit is contained in:
parent
20b00af256
commit
b80f7ac52d
2 changed files with 30 additions and 23 deletions
|
@ -21,7 +21,10 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-title,
|
.box-title{
|
||||||
|
color: #4d18e6;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
.box-value {
|
.box-value {
|
||||||
color: #606060;
|
color: #606060;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
|
|
|
@ -9,43 +9,47 @@
|
||||||
|
|
||||||
<%- include("extra/navbar") %>
|
<%- 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>
|
|
||||||
<br>
|
|
||||||
You can log out of the site here:
|
|
||||||
<a href="/login" class="btn-outline-primary">LOGOUT</a>
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<% } else { %>
|
|
||||||
<h1 style="color: #4d18e6;">Welcome, Guest!<br>You can press the button to register:
|
|
||||||
<a href="/register" class="btn-outline-primary">REGISTER</a>
|
|
||||||
|
|
||||||
</h1>
|
|
||||||
<% } %>
|
|
||||||
<h1 style="color: #606060;">Statistics:</h1>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<% if (user) { %>
|
||||||
|
<h2 style="color: #4d18e6;"><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: #4d18e6;">Welcome, Guest!<br>You can press the button to register:
|
||||||
|
<a href="/register" class="btn-outline-primary">REGISTER</a>
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
<h2 style="color: #606060;">Statistics:</h2>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2 class="box-title">Message count:</h2>
|
<h2 class="box-title">Message count:</h2>
|
||||||
<h2 class="box-title"> <%= messages %></h2>
|
<h2 class="box-value"><%= messages %></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2 class="box-title">User count: </h2>
|
<h2 class="box-title">User count: </h2>
|
||||||
<h2 class="box-title"> <%= users %> </h2>
|
<h2 class="box-value"><%= users %> </h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2 class="box-title">Thread count:</h2>
|
<h2 class="box-title">Thread count:</h2>
|
||||||
<h2 class="box-title"><%= threads %></h2>
|
<h2 class="box-value"><%= threads %></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2 class="box-title">Memory usage:</h2>
|
<h2 class="box-title">Memory usage:</h2>
|
||||||
<h2 class="box-title"><%= mem.toFixed(2); %> MB</h2>
|
<h2 class="box-value"><%= mem.toFixed(2); %> MB</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue