<!doctype html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">

<head>
    <meta charset="utf-8">
</head>

<body>
<aside class="pt-sidebar" th:fragment="menuFragment">
    <div class="collapse pt-links" id="side_menubar" aria-label="sidebar menu">
        <ul class="list-unstyled mb-0 py-3 pt-md-1">

            <li><a href="/mypage.do" class="d-inline-flex align-items-center rounded">내 정보 변경</a></li>
            <li><a href="/change_password.do" class="d-inline-flex align-items-center rounded">비밀번호 변경</a></li>
            <li><a href="/mgmt/routes/list_view.do" class="d-inline-flex align-items-center rounded">API 관리</a></li>
            <li><a href="/mgmt/api_tester.do" class="d-inline-flex align-items-center rounded">API 테스터</a></li>

            <th:block sec:authorize="hasRole('ROLE_ADMIN')">
                <li class="mb-1">
                    <button class="btn d-inline-flex align-items-center rounded" data-bs-toggle="collapse" data-bs-target="#system-collapse" aria-expanded="false" aria-current="false">
                        시스템 관리
                    </button>
                    <div class="collapse" id="system-collapse">
                        <ul class="list-unstyled fw-normal pb-1 small">
                            <li><a href="/mgmt/users/list_view.do" class="d-inline-flex align-items-center rounded">사용자 관리</a></li>
                            <li><a href="/mgmt/servers/list_view.do" class="d-inline-flex align-items-center rounded">서버 관리</a></li>
                        </ul>
                    </div>
                </li>
            </th:block>
        </ul>
    </div>
</aside>

<!-- menu script -->
<th:block th:fragment="menuScript">
    <script th:inline="javascript">

        $(function () {
        });
    </script>
</th:block>
</body>

</html>
