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.
27 lines
870 B
27 lines
870 B
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>攻击者界面</title>
|
|
</head>
|
|
<body>
|
|
<h1>攻击坐标列表</h1>
|
|
<ul>
|
|
{% 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">打击</button>
|
|
</form>
|
|
{% else %}
|
|
<span>已完成打击</span>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
{% else %}
|
|
<li>No attack coordinates available.</li>
|
|
{% endif %}
|
|
</ul>
|
|
</body>
|
|
</html> |