mower-ng/mower/templates/drop.html

47 lines
1 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>刷图掉落</title>
<style>
table {
border-collapse: collapse;
max-width: 100%;
}
th,
td {
border: 1px solid;
padding: 2px 6px;
}
td:first-child {
white-space: nowrap;
text-align: center;
}
</style>
</head>
<body>
<table>
<tr>
<th>#</th>
<th>掉落物品</th>
</tr>
{% for drop in drop_list %}
<tr>
<td>{{ loop.index }}</td>
<td>
{% for name, value in drop.items() %}{{ name }}×{{ value }}{% if not
loop.last %} {% endif %}{% endfor %}
</td>
</tr>
{% endfor %}
<tr>
<td>合计</td>
<td>
{% for name, value in drop_total.items() %}{{ name }}×{{ value }}{% if
not loop.last %} {% endif %}{% endfor %}
</td>
</tr>
</table>
</body>
</html>