<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})"></head>
<body class="timo-layout-page">
<div class="layui-card">
    <div class="layui-card-body">
        <div class="timo-table-wrap">
            <table class="layui-table timo-table">
                <thead>
                <tr>
                    <th class="sortable" data-field="machineIpv4">机器地址</th>
                    <th class="sortable" data-field="commitId">当前部署版本</th>
                    <th class="sortable" data-field="deployTime">部署时间</th>
                    <th class="sortable" data-field="deployResult">部署结果</th>
                    <th class="sortable" data-field="deployBy">部署用户</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${list}">
                    <td th:text="${item.machineIpv4}">机器地址</td>
                    <td th:text="${item.commitId}">当前部署版本</td>
                    <td th:text="${item.deployTime}">部署时间</td>
                    <td th:text="${item.deployResult}">部署结果</td>
                    <td th:text="${item.deployBy}">部署用户</td>
                    <td>
                        <a class="ajax-post" th:href="@{'/api/app/bd/deploy/'+${item.appId}}">部署</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>