-
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
1 parent
28c2623
commit 826fec8
Showing
1 changed file
with
33 additions
and
22 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,34 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>Flask User Level XP System</title> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='css/index.css') }}"> | ||
</head> | ||
<body> | ||
<h1>Flask User Level XP System</h1> | ||
<ul> | ||
{{ user.username }}:<br> | ||
Level {{ user.level }}<br> | ||
{{ user.xp | round }} / {{ user.get_xp_required() | round }} XP<br> | ||
<div class="progress-container"> | ||
<progress value="{{ user.xp | round }}" max="{{ user.get_xp_required() | round }}"></progress> | ||
<div class="progress-text">{{ user.get_level_progress() | round(2) }}%</div> | ||
</div> | ||
<form action="{{ url_for('add_xp', user_id=user.id, amount=1) }}" method="post"> | ||
<input type="hidden" name="amount" value="1"> | ||
<button type="submit">Add XP</button> | ||
</form> | ||
</ul> | ||
</body> | ||
</html> | ||
<head> | ||
<title>Flask User Level XP System</title> | ||
<link | ||
rel="stylesheet" | ||
href="{{ url_for('static', filename='css/index.css') }}" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Flask User Level XP System</h1> | ||
<ul> | ||
{{ user.username }}:<br /> | ||
Level {{ user.level }}<br /> | ||
{{ user.xp | round }} / {{ user.get_xp_required() | round }} XP<br /> | ||
<div class="progress-container"> | ||
<progress | ||
value="{{ user.xp | round }}" | ||
max="{{ user.get_xp_required() | round }}" | ||
></progress> | ||
<div class="progress-text"> | ||
{{ user.get_level_progress() | round(2) }}% | ||
</div> | ||
</div> | ||
<form | ||
action="{{ url_for('add_xp', user_id=user.id, amount=1) }}" | ||
method="post" | ||
> | ||
<input type="hidden" name="amount" value="1" /> | ||
<button type="submit">Add XP</button> | ||
</form> | ||
</ul> | ||
</body> | ||
</html> |