-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscoreboard.html
More file actions
72 lines (68 loc) · 2.19 KB
/
scoreboard.html
File metadata and controls
72 lines (68 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>查看排行榜 - 第{{ round_number }}轮</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="{{ url_for('index') }}">
<img src="{{ url_for('static', filename='img/qrt.png') }}" alt="Logo" height="40">
</a>
<div class="collapse navbar-collapse" id="mainNavbar">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="{{ url_for('index') }}#tables">查看分桌</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('index') }}#scoreboard">查看排行榜</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('player_query') }}">查询本人所在桌号</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('judge_login') }}">裁判登录</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container my-4">
<h2>第{{ round_number }}轮 排行榜</h2>
<table class="table table-striped table-hover mt-3">
<thead>
<tr>
<th>排名</th>
<th>选手编号</th>
<th>选手姓名</th>
<th>积分</th>
</tr>
</thead>
<tbody>
{% for item in scoreboard %}
<tr>
<td>{{ loop.index }}</td>
<td>{{ item.unique_id }}</td>
<td>{{ item.name }}</td>
<td>{{ item.score }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>
{% if 'judge' in session %}
<a href="{{ url_for('judge_dashboard') }}" class="btn btn-secondary">返回裁判工作台</a>
{% else %}
<a href="{{ url_for('index') }}" class="btn btn-secondary">返回首页</a>
{% endif %}
</p>
</div>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>