<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
    <style>
        a{
            color: #009688;
        }
        a:hover{
            color: #004a43;
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="timo-detail-page">
        <table class="layui-table">
            <thead>
            <tr>
                <th>角色</th>
                <th>角色名</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="item:${list}">
                <td>[[${item.title}]]</td>
                <td>[[${item.name}]]</td>
            </tr>
            <tr th:if="${list.isEmpty()}">
                <td style="text-align: center" colspan="3">本资源没有分配给任何角色</td>
            </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>