<!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>应用 ID</th>
                <td th:text="${app.appId}"></td>
                <th>应用名称</th>
                <td th:text="${app.appName}"></td>
            </tr>
            <tr>
                <th>所属环境</th>
                <td th:text="${app.env}"></td>
                <th>应用类型</th>
                <td th:text="${app.appType}"></td>
            </tr>
            <tr>
                <th>应用仓库</th>
                <td th:text="${app.appRepo}"></td>
                <th>仓库分支</th>
                <td th:text="${app.repoBranch}"></td>
            </tr>
            <tr>
                <th>应用根路径</th>
                <td th:text="${app.appRootPath}"></td>
                <th>Dockerfile</th>
                <td>
                    <textarea class="layui-textarea" readonly="readonly" th:text="${app.dockerfile}"></textarea>
                </td>
            </tr>
            <tr>
                <th>监听端口</th>
                <td th:text="${app.bindPorts}"></td>
                <th>健康检查</th>
                <td th:text="${app.healthCheck}"></td>
            </tr>
            </tbody>
        </table>
        <div class="timo-detail-title">构建配置</div>
        <table class="layui-table timo-detail-table">
            <tbody>
            <tr>
                <th>仓库类型</th>
                <td th:text="${app.repoAuthConfig.type}"></td>
                <th>仓库认证名字</th>
                <td th:text="${app.repoAuthConfig.name}"></td>
                <th>认证类型</th>
                <td th:text="${app.repoAuthConfig.authType}"></td>
            </tr>
            <tr>
                <th>编译器类型</th>
                <td th:text="${app.compilerConfig.type}"></td>
                <th>编译器名字</th>
                <td th:text="${app.compilerConfig.name}"></td>
                <th>编译命令</th>
                <td th:text="${app.compilerConfig.compileCmd}"></td>
            </tr>
            <tr>
                <th>打包类型</th>
                <td th:text="${app.packerConfig.type}"></td>
                <th>打包名字</th>
                <td th:text="${app.packerConfig.name}"></td>
                <th>打包路径</th>
                <td th:text="${app.packerConfig.targetPath}"></td>
            </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>