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.
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>指挥者界面</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>指挥者界面</h1>
|
|
|
|
|
|
|
|
<h2>发送攻击坐标</h2>
|
|
|
|
<form action="{{ url_for('send_attack') }}" method="post">
|
|
|
|
<label for="coordinate">攻击坐标:</label>
|
|
|
|
<input type="text" id="coordinate" name="coordinate" required>
|
|
|
|
<button type="submit">发送消息</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<h2>攻击坐标状态</h2>
|
|
|
|
<ul>
|
|
|
|
{% if attacks %}
|
|
|
|
{% for attack in attacks %}
|
|
|
|
<li>
|
|
|
|
<strong>坐标:</strong> {{ attack.coordinate }}
|
|
|
|
- <em>{{ attack.created_at }}</em>
|
|
|
|
- <span>{% if attack.attacked %}已完成打击{% else %}等待打击{% endif %}</span>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<li>No attack coordinates available.</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h2>查看照片</h2>
|
|
|
|
<ul>
|
|
|
|
{% if media_items %}
|
|
|
|
{% for filename in media_items %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('uploaded_file', filename=filename) }}" target="_blank">
|
|
|
|
<img src="{{ url_for('uploaded_file', filename=filename) }}" width="100">
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<li>No images found in the directory.</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</body>
|
|
|
|
</html>
|