mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-01 03:25:04 +03:00
80 lines
No EOL
2 KiB
Text
80 lines
No EOL
2 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<link rel="stylesheet" href="/css/styles.css" />
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>
|
|
<%= member.name %>
|
|
</title>
|
|
<meta name="description" content="Akf-forum user page!">
|
|
<meta name="author" content="Akif9748">
|
|
<link rel="icon" type="image/x-icon" href="/images/favicon.jpg">
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
<!-- Navbar: -->
|
|
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
|
|
<br>
|
|
<button class="buyuk" onclick="window.location.href = '/threads'">THREADS</button>
|
|
<button class="buyuk" onclick="window.location.href = '/search'">SEARCH</button>
|
|
<button class="buyuk" onclick="window.location.href = '/users'">USERS</button>
|
|
<button class="buyuk" onclick="window.location.href = '/createThread/'">OPEN THREAD</button>
|
|
<h1 style="display:inline; float:right;"><a href=<%=user.getLink() %>> <%= user.name %></a>
|
|
<img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
|
|
</h1>
|
|
<hr>
|
|
|
|
<!-- Navbar end -->
|
|
|
|
|
|
<ul>
|
|
<li>
|
|
<h1>Avatar:</h1>
|
|
<img style="width:256px;height:256px;" src=<%=member.avatar %> alt=<%= member.name %>>
|
|
</li>
|
|
|
|
<li>
|
|
<h2>Name: <%= member.name %>
|
|
</h2>
|
|
</li>
|
|
<li>
|
|
<h2>Created at:
|
|
<%= new Date(member.time).toLocaleString() %>
|
|
</h2>
|
|
|
|
|
|
</li>
|
|
<li>
|
|
<h2>Is admin? <%= member.admin ? "Yes" : "No" %>
|
|
</h2>
|
|
</li>
|
|
|
|
<li>
|
|
<h2> Message: <%= counts.message %>
|
|
</h2>
|
|
</li>
|
|
<li>
|
|
<h2> Thread: <%= counts.thread %>
|
|
</h2>
|
|
</li>
|
|
</ul>
|
|
|
|
<% if (user.admin) {%>
|
|
<form action="/admin/" method="POST">
|
|
<input name="userid" type="hidden" value="<%= member.id %>"></input>
|
|
<button class="buyuk" type="submit">Make admin!</button>
|
|
|
|
</form>
|
|
|
|
<form action="/userDelete/<%= member.id %>" method="POST">
|
|
<button class="buyuk" type="submit">Delete user!</button>
|
|
</form>
|
|
<% }; %>
|
|
|
|
</body>
|
|
|
|
</html> |