<!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-header timo-card-header">
        <span><i class="fa fa-bars"></i> 系统运行日志</span>
        <i class="layui-icon layui-icon-refresh refresh-btn"></i>
    </div>
    <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="nodeId">应用</th>
                    <th>查看</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${list}">
                    <td th:text="${item.machineIpv4}">机器地址</td>
                    <td th:text="${item.nodeId}">应用</td>
                    <td>
                        <a class="open-popup" data-title="日志"
                           th:attr="data-url=@{'/sys/log/runtime/detail/'+${item.machineId}+'/'+${item.nodeId}}"
                           data-size="1200,600" href="#">查看</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <!--TODO 暂不使用分页
        <div th:replace="/common/fragment :: page"></div>-->
    </div>
</div>

<script th:replace="/common/template :: script"></script>
<script type="text/javascript">
</script>
</body>
</html>