<!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">
        <table class="layui-table timo-detail-table">
            <tbody>
            <tr>
                <th>仓库类型</th>
                <td th:text="${repoAuth.type}"></td>
                <th>认证名字</th>
                <td th:text="${repoAuth.name}"></td>
            </tr>
            <tr>
                <th>认证方式</th>
                <td th:text="${repoAuth.authType}"></td>
                <span th:if="${repoAuth.authType} == 'ssh'">
                    <th>RSA 私钥</th>
                    <td>
                        <textarea class="layui-textarea" readonly="readonly" th:text="${repoAuth.rsaPrikey}"></textarea>
                    </td>
                </span>
                <span th:if="${repoAuth.authType} == 'http'">
                    <th>用户名</th>
                    <td th:text="${repoAuth.username}"></td>
                    <th>密码</th>
                    <td th:text="${repoAuth.password}"></td>
                </span>
            </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>