<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})"></head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">节点信息</div>
        <table class="layui-table timo-detail-table">
            <tbody>
            <tr>
                <th>地址</th>
                <td th:text="${storeNode.nodeAddr}"></td>
                <th>HTTP 端口</th>
                <td th:text="${storeNode.httpPort}"></td>
                <th>RPC 端口</th>
                <td th:text="${storeNode.rpcPort}"></td>
            </tr>
            </tbody>
        </table>
        <div class="timo-detail-title">磁盘信息</div>
        <table class="layui-table timo-detail-table">
            <thead>
            <tr>
                <th class="sortable" data-field="appName">磁盘路径</th>
                <th class="sortable" data-field="appName">总容量</th>
                <th class="sortable" data-field="appName">可用容量</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="item:${storeNode.storeDisks}">
                <td th:text="${item.diskDir}"></td>
                <td th:text="${item.total}"></td>
                <td th:text="${item.avail}"></td>
            </tr>
            </tbody>
        </table>
        <div class="timo-detail-title">节点配置</div>
        <table class="layui-table timo-detail-table">
            <tbody>
            <tr>
                <th>域名</th>
                <td th:text="${storeNode.domain}"></td>
            </tr>
            <tr>
                <th>SecretKey</th>
                <td th:text="${storeNode.secretKey}"></td>
            </tr>
            <tr>
                <th>Referer</th>
                <td th:text="${storeNode.referer}"></td>
            </tr>
            </tbody>
        </table>
        <div class="timo-detail-title">节点通道</div>
        <table class="layui-table timo-detail-table">
            <thead>
            <tr>
                <th class="sortable" data-field="appName">创建者</th>
                <th class="sortable" data-field="appName">Channel ID</th>
                <th class="sortable" data-field="appName">Prefix</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="item:${storeNode.objectChannels}">
                <td th:text="${item.createBy}"></td>
                <td th:text="${item.channelId}"></td>
                <td th:text="${item.prefix}"></td>
            </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>