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.
32 lines
1.1 KiB
32 lines
1.1 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>攻击者</title>
|
|
<link rel="stylesheet" href="/static/login.css">
|
|
</head>
|
|
<body>
|
|
<div class="login">
|
|
<h2>攻击坐标列表</h2>
|
|
<ul class="white-text">
|
|
{% if attacks %}
|
|
{% for attack in attacks %}
|
|
<li>
|
|
<strong>坐标:</strong> {{ attack.coordinate }} - <em>{{ attack.created_at }}</em>
|
|
{% if not attack.attacked %}
|
|
<form action="{{ url_for('execute_attack', attack_id=attack.id) }}" method="post" style="display:inline;">
|
|
<button type="submit" class="attack-button">打击</button>
|
|
</form>
|
|
{% else %}
|
|
<span>已完成打击</span>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
{% else %}
|
|
<li>No attack coordinates available.</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html> |