<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table class="am-table am-table-bd am-table-bdrs am-table-striped am-table-hover">
    <tbody th:remove="all-but-first">
    <tr th:each="ea : ${list}">
        <td th:text="${ea}"></td>
        <td>
            <button class="btn" th:onclick="download([[${ea}]]);">下载</button>
        </td>
    </tr>
    </tbody>
</table>
</body>
<script th:inline="javascript">
    function download(a) {
        window.location.href="/api/admin/download?path="+a;
    }
</script>
</html>