<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
    <style>
        a{
            color: #005980;
        }
        .widget-small{
            background-color: #FFFFFF;
            overflow: hidden;
            text-align: center;
            border-radius: 2px;
            box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
        }
        .widget-small .fa{
            float: left;
            width: 40%;
            line-height: 80px;
            color: #FFFFFF;
        }
        .widget-user .fa{
            background-color: #029789;
        }
        .widget-visit .fa{
            background-color: #17a2b8;
        }
        .widget-message .fa{
            background-color: #fbad4c;
        }
        .widget-like .fa{
            background-color: #ff646d;
        }
        .widget-small-info{
            float: left;
            text-align: left;
            width: 40%;
            margin-left: 20px;
            margin-top: 18px;
            line-height: 24px;
        }
        .widget-small-info h4{
            font-size: 18px;
        }
        .widget-small-info span{
            font-size: 16px;
        }
        .project-introduce{
            min-height: 466px;
        }
        .project-introduce h4{
            font-weight: bold;
            margin-top: 12px;
            margin-bottom: 8px;
        }
        .project-introduce li{
            list-style: decimal;
            margin-left: 28px;
        }
        .alert {
            padding: 15px;
            margin-bottom: 10px;
            border: 1px solid transparent;
            border-radius: 4px;
        }
        .alert-info {
            color: #31708f;
            background-color: #d9edf7;
            border-color: #bce8f1;
        }
        .avatar {
            width: 8px;
            height: 8px;
            border: 3px rgb(48, 69, 96) solid;
            border-radius: 6px;
            position: relative;
            background-size: cover;
            background-position: center;
        }
        .active {
            background-color: rgb(48, 249, 75);
        }
        .inactive {
            background-color: rgb(255, 0, 0);
        }
    </style>
</head>

<body class="timo-layout-page">
<div class="layui-row layui-col-space15">
    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="layui-card-header">
                <span><i class="fa fa-server"></i> 节点状态</span>
            </div>
            <div id="chart1" class="layui-card-body">
                <table class="layui-table timo-detail-table">
                    <thead>
                    <tr>
                        <th data-field="env">环境</th>
                        <th data-field="total">总数</th>
                        <th data-field="onlineCount">在线</th>
                        <th data-field="offlineCount">离线</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="item:${list}">
                        <td th:text="${item.env}">环境</td>
                        <td th:text="${item.total}">总数</td>
                        <td style="color: #009688" th:text="${item.onlineCount}">在线</td>
                        <td style="color: #ff0000" th:text="${item.offlineCount}">离线</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="layui-card-header">
                <span><i class="fa fa-table"></i> 系统信息</span>
            </div>
            <div class="layui-card-body">
                <div class="layui-card-body">
                    <table class="layui-table timo-detail-table">
                        <tbody>
                        <tr>
                            <th>系统版本</th>
                            <td>
                                <a th:text="${mgrVersion}" target="_blank" th:href="@{'https://git.reghao.cn/reghao/devops/commit/' + ${mgrVersion}}"></a>
                            </td>
                        </tr>
                        <tr>
                            <th>机器地址</th>
                            <td th:text="${hostAddr}"></td>
                        </tr>
                        <tr>
                            <th>操作系统</th>
                            <td th:text="${osInfo}"></td>
                        </tr>
                        <tr>
                            <th>JVM</th>
                            <td th:text="${jvmInfo}"></td>
                        </tr>
                        <tr>
                            <th>启动时间</th>
                            <td th:text="${startAt}"></td>
                        </tr>
                        </tbody>
                        <tr>
                            <th>PID</th>
                            <td th:text="${pid}"></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>