2024-09-28 10:04:42 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Match Logs</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
margin: 0;
|
|
|
|
padding: 20px;
|
2024-09-28 18:19:27 +08:00
|
|
|
background-color: #cbe5d6;
|
2024-09-28 10:04:42 +08:00
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
text-align: center;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
th, td {
|
|
|
|
padding: 12px;
|
|
|
|
text-align: left;
|
2024-09-28 18:19:27 +08:00
|
|
|
border-bottom: 1px solid #9714b9;
|
2024-09-28 10:04:42 +08:00
|
|
|
}
|
|
|
|
th {
|
|
|
|
background-color: #5e7abf;
|
2024-09-28 18:19:27 +08:00
|
|
|
color: #278080;
|
2024-09-28 10:04:42 +08:00
|
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
|
|
background-color: #8568d7;
|
|
|
|
}
|
|
|
|
tr:hover {
|
|
|
|
background-color: #75d1c8;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>交流记录</h1>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Question</th>
|
|
|
|
<th>Answer</th>
|
|
|
|
<th>Audio Path</th>
|
|
|
|
<th>Action</th>
|
|
|
|
</tr>
|
|
|
|
{% for log in logs %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ log[1] }}</td>
|
|
|
|
<td>{{ log[2] }}</td>
|
|
|
|
<td>
|
|
|
|
<audio controls>
|
|
|
|
<source src="{{ url_for('static', filename=log[3]) }}" type="audio/mpeg">
|
|
|
|
Your browser does not support the audio element.
|
|
|
|
</audio>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<form action="{{ url_for('delete', log_id=log[0]) }}" method="post" style="display:inline;">
|
|
|
|
<button type="submit" style="background-color: #e74c3c; color: white; border: none; padding: 5px 10px; cursor: pointer;">
|
|
|
|
删除
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|