Skip to content

Commit

Permalink
增加警报HTML文件
Browse files Browse the repository at this point in the history
  • Loading branch information
KingPrimes committed Nov 24, 2024
1 parent 560ef73 commit d4ffead
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions Template/html/alerts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">

<head>
<meta charset="UTF-8"/>
<link th:href="@{/css/index.css}" rel="stylesheet"/>
<title>警报</title>
<style>
h1 {
text-align: center;
}

table {
width: 100%;
}

td {
text-align: center;
}

body {
color: #fff;
background-color: #283B47;
}

.arbitration {
border-radius: 15px;
border: 5px solid #ffc;
margin: 8px;
background-color: #2C414E;
}

</style>
</head>


<body>
<!--
生成图片的宽度
-->
<w>
3500
</w>
<h1>警报</h1>
<hr/>
<div class="card arbitration">
<table th:if="${alerts}!=null">
<thead>
<tr>
<th>任务地点</th>
<th>任务类型</th>
<th>派系</th>
<th>任务奖励</th>
<th>距离结束</th>
</tr>
</thead>
<tbody>
<tr th:each="al:${alerts}">
<td th:text="${al.mission.node}"></td>
<td th:text="${al.mission.type}"></td>
<td th:text="${al.mission.faction}"></td>
<td>
<span th:text="${al.mission.reward.credits}+'星币'" style="color: #3c879c"></span>
<div th:each="rc:${al.mission.reward.countedItems}">
<span th:text="${rc.count}+' * '+${rc.key}" style="color: #9ec5fe"></span>
</div>
</td>
<td th:text="${al.eta}"></td>
</tr>
</tbody>
</table>
</div>

</body>
</html>

0 comments on commit d4ffead

Please sign in to comment.