burgercat/templates/user.html

50 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>burgercat</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="/static/css/style.css" />
</head>
<body>
<div class="navbar">
<h1>burgercat</h1>
<a class="selected" href="/">home</a>
<a href="/chat">chat</a>
<a href="/post">post</a>
{% if userdata %}
<a href="/settings/logout" class="right r">log out</a>
<a href="/settings" class="right">{{ userdata.username }}</a>
{% else %}
<a href="/signup" class="right r">sign up</a>
<a href="/login" class="right">log in</a>
{% endif %}
</div>
<div class="postDiv">
<div class="profileDiv">
<h2>{{ pageuser.username }}</h2>
<div class="badgeDiv">
{% if pageuser.administrator == 1 %}
<p>Administrator</p>
{% endif %}
</div>
<p>Joined on {{ createddate }}</p>
{% if userdata %}
{% if pageuser.id == userdata.id %}
<a style="color: rgb(104, 104, 104); text-decoration: none;" href="/@{{ userdata.username }}/edit">edit page</a>
<br><br>
{% endif %}
{% endif %}
</div>
<iframe src="/api/page/{{ pageuser.id }}" class="profileIFrame" sandbox=""></iframe>
</div>
<style>
body {
overflow-y: hidden
}
</style>
</body>
</html>