<!DOCTYPE html>
<html lang="ru" data-bs-theme="dark" xmlns:th="http://www.thymeleaf.org"
    xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">

<head>
    <meta charset="UTF-8" />
    <link rel="icon" href="/images/logo.png" type="image/x-icon">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script type="text/javascript" src="/webjars/bootstrap/5.3.3/dist/js/bootstrap.bundle.min.js"></script>
    <link rel="stylesheet" href="/webjars/bootstrap/5.3.3/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/webjars/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" />
    <link rel="stylesheet" href="/webjars/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/style.css" />
</head>

<body class="h-100 d-flex flex-column">
    <nav class="navbar navbar-expand-md my-navbar" data-bs-theme="dark">
        <div class="container-fluid">
            <a class="navbar-brand" href="/news">
                <i></i>
                UlSTU
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#main-navbar"
                aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="main-navbar">
                <ul class="navbar-nav me-auto link" th:with="activeLink=${#objects.nullSafe(servletPath, '')}">
                    <a class="nav-link" href="/news" th:classappend="${activeLink.startsWith('/news') ? 'active' : ''}">
                        Новости
                    </a>
                    <a class="nav-link" href="/directions"
                        th:classappend="${activeLink.startsWith('/directions') ? 'active' : ''}">
                        Направления
                    </a>
                    <a class="nav-link" href="/departments"
                        th:classappend="${activeLink.startsWith('/departments') ? 'active' : ''}">
                        Кафедры
                    </a>
                    <a class="nav-link" href="/users"
                        th:classappend="${activeLink.startsWith('/users') ? 'active' : ''}">
                        Пользователи
                    </a>
                </ul>
                <ul class="navbar-nav">
                </ul>
            </div>
        </div>
    </nav>
    <main class="container-fluid p-2" layout:fragment="content">
    </main>
    <footer class="my-footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
        Адреса: ул. Северный Венец, 32; ул. Андрея Блаженного, 3
    </footer>
</body>

</html>