[EDIT] ログインしてないユーザのヘッダーを修正しました。
This commit is contained in:
@@ -1,30 +1,34 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html xmlns:th="http://www.thymeleaf.org">
|
<html xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">
|
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>ヘッダー</title>
|
<title>ヘッダー</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" th:href="@{/css/style.css}">
|
<link rel="stylesheet" th:href="@{/css/style.css}">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header th:fragment="header" class="fixed-top">
|
<header th:fragment="header" class="fixed-top">
|
||||||
|
|
||||||
<nav class="navbar app-header" style="background-color: #e3f2fd;" data-bs-theme="light">
|
<nav class="navbar app-header" style="background-color: #e3f2fd;" data-bs-theme="light">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a th:href="@{/menu}" class="navbar-brand fw-bold">Monegement</a>
|
<a th:href="@{/menu}" class="navbar-brand fw-bold">Monegement</a>
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2" th:if="${session.loginUser != null}">
|
||||||
<a class="btn btn-outline-primary btn-sm" th:href="@{/course}">
|
<a class="btn btn-outline-primary btn-sm" th:href="@{/course}">
|
||||||
コース
|
コース
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-outline-secondary btn-sm" th:href="@{/profile}">
|
<a class="btn btn-outline-secondary btn-sm" th:href="@{/profile}">
|
||||||
プロフィール
|
プロフィール
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user