<!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 data-field="createTime">时间</th>
                    <th data-field="machineIpv4">标题</th>
                    <th data-field="unread">状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${list}">
                    <td th:text="${item.createTime}">时间</td>
                    <td th:text="${item.title}">标题</td>
                    <td th:text="${item.unread}">未读</td>
                    <td>
                        <a class="open-popup" data-title="消息内容" th:attr="data-url=@{'/sys/message/detail/'+${item.id}}"
                           data-size="960,480" href="#">查看</a>
                        <!--<a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.id} + ' 机器?'"
                           th:href="@{'/api/sys/msg/' + ${item.id}}">删除</a>-->
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div th:replace="/common/fragment :: page"></div>
    </div>
</div>

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