-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% extends "dash/dash.html" %} | ||
|
||
{% block head %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="flex flex-col items-center"> | ||
<div class="w-1/4 flex flex-col bg-slate-700 rounded-lg p-10"> | ||
<div class="flex flex-row items-center gap-3 justify-center"> | ||
<img src={{ "https://gravatar.com/avatar/" + gravatarhash }} class="w-16 rounded-full"> | ||
<h1 class="text-2xl text-white font-bold">{{ user.username }}</h2> | ||
</div> | ||
<div class="flex flex-col items-center mt-5"> | ||
<p class="text-lg text-slate-400"><i class="fa-solid fa-envelope"></i> Email: <span class="text-white font-bold">{{ user.email }}</span></p> | ||
<p class="text-lg text-slate-400"><i class="fa-solid fa-coins"></i> Credits: <span class="text-white font-bold">{{ user.credits }}</span></p> | ||
{% if user.verifiedEmail %} | ||
<p class="text-lg text-green-400"><i class="fa-solid fa-check"></i> Email verified</p> | ||
{% else %} | ||
<p class="text-lg text-red-400"><i class="fa-solid fa-times"></i> Email not verified</p> | ||
{% endif %} | ||
{% if user.admin %} | ||
<p class="text-lg text-yellow-400"><i class="fa-solid fa-hammer"></i> Admin rights</p> | ||
{% endif %} | ||
</div> | ||
<div class="flex flex-row justify-between"> | ||
<form action="/user/edit"> | ||
<button class="bg-slate-800 hover:bg-slate-600 hover:text-blue-500 duration-300 text-white font-bold rounded-md h-10 w-40 mt-5" type="submit"><i class="fa-solid fa-pen"></i> Edit profile</button> | ||
</form> | ||
{% if user.verifiedEmail == false %} | ||
<form action="/user/verify"> | ||
<button class="bg-slate-800 hover:bg-slate-600 hover:text-green-500 duration-300 text-white font-bold rounded-md h-10 w-40 mt-5" type="submit"><i class="fa-solid fa-envelope"></i> Verify email</button> | ||
</form> | ||
{% endif %} | ||
<form action="/user/delete"> | ||
<button class="bg-slate-800 hover:bg-slate-600 hover:text-red-500 duration-300 text-white font-bold rounded-md h-10 w-40 mt-5" type="submit"><i class="fa-solid fa-trash"></i> Delete profile</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |