Skip to content

Commit 826fec8

Browse files
committed
Format HTML code
1 parent 28c2623 commit 826fec8

File tree

1 file changed

+33
-22
lines changed

1 file changed

+33
-22
lines changed

templates/index.html

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<title>Flask User Level XP System</title>
5-
<link rel="stylesheet" href="{{ url_for('static', filename='css/index.css') }}">
6-
</head>
7-
<body>
8-
<h1>Flask User Level XP System</h1>
9-
<ul>
10-
{{ user.username }}:<br>
11-
Level {{ user.level }}<br>
12-
{{ user.xp | round }} / {{ user.get_xp_required() | round }} XP<br>
13-
<div class="progress-container">
14-
<progress value="{{ user.xp | round }}" max="{{ user.get_xp_required() | round }}"></progress>
15-
<div class="progress-text">{{ user.get_level_progress() | round(2) }}%</div>
16-
</div>
17-
<form action="{{ url_for('add_xp', user_id=user.id, amount=1) }}" method="post">
18-
<input type="hidden" name="amount" value="1">
19-
<button type="submit">Add XP</button>
20-
</form>
21-
</ul>
22-
</body>
23-
</html>
3+
<head>
4+
<title>Flask User Level XP System</title>
5+
<link
6+
rel="stylesheet"
7+
href="{{ url_for('static', filename='css/index.css') }}"
8+
/>
9+
</head>
10+
<body>
11+
<h1>Flask User Level XP System</h1>
12+
<ul>
13+
{{ user.username }}:<br />
14+
Level {{ user.level }}<br />
15+
{{ user.xp | round }} / {{ user.get_xp_required() | round }} XP<br />
16+
<div class="progress-container">
17+
<progress
18+
value="{{ user.xp | round }}"
19+
max="{{ user.get_xp_required() | round }}"
20+
></progress>
21+
<div class="progress-text">
22+
{{ user.get_level_progress() | round(2) }}%
23+
</div>
24+
</div>
25+
<form
26+
action="{{ url_for('add_xp', user_id=user.id, amount=1) }}"
27+
method="post"
28+
>
29+
<input type="hidden" name="amount" value="1" />
30+
<button type="submit">Add XP</button>
31+
</form>
32+
</ul>
33+
</body>
34+
</html>

0 commit comments

Comments
 (0)