You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
2 months ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>积分排名</title>
|
||
|
<link href="static/plugins/bootstrap-4.6.2/css/bootstrap.min.css" rel="stylesheet">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container mt-4">
|
||
|
<h1 class="text-center">学生积分排名</h1>
|
||
|
<table class="table table-striped mt-4">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>姓名</th>
|
||
|
<th>积分</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% if students %}
|
||
|
{% for student in students %}
|
||
|
<tr>
|
||
|
<td>{{ student['name'] }}</td>
|
||
|
<td>{{ student['points'] }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
{% else %}
|
||
|
<tr>
|
||
|
<td colspan="2" class="text-center">没有找到任何学生数据。</td>
|
||
|
</tr>
|
||
|
{% endif %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<a href="/" class="btn btn-primary">返回首页</a>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|
||
|
|