Skip to content

Commit 532a955

Browse files
committed
thymeleaf fragment warnings fixed
1 parent b479d80 commit 532a955

File tree

7 files changed

+32
-32
lines changed

7 files changed

+32
-32
lines changed

src/main/resources/templates/error.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
33

4-
<head th:replace="_fragments/header :: head(~{this :: title}, ~{this :: .custom-link})">
4+
<head th:replace="~{_fragments/header :: head(~{this :: title}, ~{this :: .custom-link})}">
55
<title> Opps!</title>
66
<!-- we can do the following to add extra css on this page -->
77
<link class="custom-link" th:href="@{/static/css/some-custom-this-page-only.css}"/>
88
</head>
99
<body>
1010

11-
<div th:replace="_fragments/header :: headerbar"></div>
11+
<div th:replace="~{_fragments/header :: headerbar}"></div>
1212

1313

1414
<div class="px-3 py-3 pt-md-8 pb-md-8 mx-auto text-center">
@@ -26,12 +26,12 @@
2626

2727
</div>
2828

29-
<div th:replace="_fragments/footer :: page-footer"></div>
29+
<div th:replace="~{_fragments/footer :: page-footer}"></div>
3030

3131
</div>
3232
</div>
3333

34-
<div th:replace="_fragments/footer :: js-imports(~{this :: .custom-script})">
34+
<div th:replace="~{_fragments/footer :: js-imports(~{this :: .custom-script})}">
3535
<script class="custom-script" th:src="@{/static/js/custom.js}"></script>
3636
</div>
3737

src/main/resources/templates/landing.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
33

4-
<head th:replace="_fragments/header :: head(~{:: title}, ~{:: .custom-link})">
4+
<head th:replace="~{_fragments/header :: head(~{:: title}, ~{:: .custom-link})}">
55
<title> Note App - HOME</title>
66
<!-- we can do the following to add extra css on this page -->
77
<link class="custom-link" th:href="@{/static/css/some-custom-this-page-only.css}"/>
88
</head>
99
<body>
1010

11-
<div th:replace="_fragments/header :: headerbar"></div>
11+
<div th:replace="~{_fragments/header :: headerbar}"></div>
1212

1313

1414
<div class="container">
@@ -29,15 +29,15 @@
2929
<div sec:authorize="isAuthenticated()">
3030
<form action="#" method="post" th:action="@{/note/add}" th:object="${note}"
3131
enctype="multipart/form-data">
32-
<div th:replace="note/_notes :: note-editor"></div>
32+
<div th:replace="~{note/_notes :: note-editor}"></div>
3333

3434
<button class="btn btn-primary btn-sm btn-block" type="submit" id="postNote-btn">Post Note</button>
3535
</form>
3636
<hr/>
3737
</div>
3838

3939
<th:block th:each="note : ${notes}">
40-
<th:block th:replace="note/_notes :: note-box">
40+
<th:block th:replace="~{note/_notes :: note-box}">
4141

4242
</th:block>
4343
</th:block>
@@ -50,11 +50,11 @@
5050
</div>
5151
</div>
5252

53-
<div th:replace="_fragments/footer :: page-footer" th:remove="tag"></div>
53+
<div th:replace="~{_fragments/footer :: page-footer}" th:remove="tag"></div>
5454

5555
</div>
5656

57-
<div th:replace="_fragments/footer :: js-imports(~{::.custom-script})">
57+
<div th:replace="~{_fragments/footer :: js-imports(~{::.custom-script})}">
5858
<script class="custom-script" th:src="@{/static/js/custom.js}"></script>
5959
</div>
6060

src/main/resources/templates/note.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
33

4-
<head th:replace="_fragments/header :: head(~{:: title}, ~{:: .custom-link})">
4+
<head th:replace="~{_fragments/header :: head(~{:: title}, ~{:: .custom-link})}">
55
<title> Notes</title>
66
<!-- we can do the following to add extra css on this page -->
77
<link class="custom-link" th:href="@{/static/css/some-custom-this-page-only.css}"/>
88
</head>
99

1010
<body>
1111

12-
<div th:replace="_fragments/header :: headerbar"></div>
12+
<div th:replace="~{_fragments/header :: headerbar}"></div>
1313

1414

1515
<div class="container">
@@ -27,7 +27,7 @@ <h3>
2727
</div>
2828

2929
<form action="#" method="post" th:action="@{/note/add}" th:object="${note}" enctype="multipart/form-data">
30-
<div th:replace="note/_notes :: note-editor"></div>
30+
<div th:replace="~{note/_notes :: note-editor}"></div>
3131

3232
<button class="btn btn-primary btn-sm btn-block" type="submit" id="postNote-btn">Post Note</button>
3333
</form>
@@ -73,11 +73,11 @@ <h2>Notes</h2>
7373

7474
</div>
7575

76-
<div th:replace="_fragments/footer :: page-footer"></div>
76+
<div th:replace="~{_fragments/footer :: page-footer}"></div>
7777

7878
</div>
7979

80-
<div th:replace="_fragments/footer :: js-imports(~{::.custom-script})">
80+
<div th:replace="~{_fragments/footer :: js-imports(~{::.custom-script})}">
8181
<script class="custom-script" th:src="@{/static/js/custom.js}"></script>
8282
</div>
8383

src/main/resources/templates/note/edit-note.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
33

4-
<head th:replace="_fragments/header :: head(~{:: title}, ~{:: .custom-link})">
4+
<head th:replace="~{_fragments/header :: head(~{:: title}, ~{:: .custom-link})}">
55
<title> Edit Note</title>
66
<!-- we can do the following to add extra css on this page -->
77
<link class="custom-link" th:href="@{/static/css/some-custom-this-page-only.css}"/>
88
</head>
99

1010
<body>
1111

12-
<div th:replace="_fragments/header :: headerbar"></div>
12+
<div th:replace="~{_fragments/header :: headerbar}"></div>
1313

1414

1515
<div class="container">
@@ -18,7 +18,7 @@
1818

1919
<form action="#" method="post" th:action=@{/note/edit} th:object="${note}" enctype="multipart/form-data">
2020

21-
<div th:replace="note/_notes :: note-editor"></div>
21+
<div th:replace="~{note/_notes :: note-editor}"></div>
2222

2323
<button class="btn btn-primary btn-sm btn-block" type="submit" id="updateNote-btn">Update Note</button>
2424
</form>
@@ -27,11 +27,11 @@
2727
</div>
2828
</div>
2929

30-
<div th:replace="_fragments/footer :: page-footer"></div>
30+
<div th:replace="~{_fragments/footer :: page-footer}"></div>
3131

3232
</div>
3333

34-
<div th:replace="_fragments/footer :: js-imports(~{::.custom-script})">
34+
<div th:replace="~{_fragments/footer :: js-imports(~{::.custom-script})}">
3535
<script class="custom-script" th:src="@{/static/js/custom.js}"></script>
3636
</div>
3737

src/main/resources/templates/user/password.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<html xmlns="http://www.w3.org/1999/xhtml"
33
xmlns:th="http://www.thymeleaf.org">
44

5-
<head th:replace="_fragments/header :: head(~{:: title}, ~{:: .custom-link})">
5+
<head th:replace="~{_fragments/header :: head(~{:: title}, ~{:: .custom-link})}">
66
<title> Note App - Signup</title>
77
<!-- we can do the following to add extra css on this page -->
88
<link class="custom-link" th:href="@{/static/css/some-custom-this-page-only.css}"/>
99
</head>
1010
<body>
1111

12-
<div th:replace="_fragments/header :: headerbar"></div>
12+
<div th:replace="~{_fragments/header :: headerbar}"></div>
1313

1414
<div class="container">
1515
<div class="card-deck mb-3">
@@ -34,11 +34,11 @@ <h4 class="mb-3">Update Password</h4>
3434
</div>
3535
</div>
3636

37-
<div th:replace="_fragments/footer :: page-footer" th:remove="tag"></div>
37+
<div th:replace="~{_fragments/footer :: page-footer}" th:remove="tag"></div>
3838

3939
</div>
4040

41-
<div th:replace="_fragments/footer :: js-imports(~{::.custom-script})">
41+
<div th:replace="~{_fragments/footer :: js-imports(~{::.custom-script})}">
4242
<script class="custom-script" th:src="@{/static/js/custom.js}"></script>
4343
</div>
4444

src/main/resources/templates/user/profile.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<html xmlns="http://www.w3.org/1999/xhtml"
33
xmlns:th="http://www.thymeleaf.org">
44

5-
<head th:replace="_fragments/header :: head(~{:: title}, ~{:: .custom-link})">
5+
<head th:replace="~{_fragments/header :: head(~{:: title}, ~{:: .custom-link})}">
66
<title> Note App - Signup</title>
77
<!-- we can do the following to add extra css on this page -->
88
<link class="custom-link" th:href="@{/static/css/some-custom-this-page-only.css}"/>
99
</head>
1010
<body>
1111

12-
<div th:replace="_fragments/header :: headerbar"></div>
12+
<div th:replace="~{_fragments/header :: headerbar}"></div>
1313

1414
<div class="container">
1515
<div class="card-deck mb-3">
@@ -47,11 +47,11 @@ <h4 class="mb-3">User Profile</h4>
4747
</div>
4848
</div>
4949

50-
<div th:replace="_fragments/footer :: page-footer" th:remove="tag"></div>
50+
<div th:replace="~{_fragments/footer :: page-footer}" th:remove="tag"></div>
5151

5252
</div>
5353

54-
<div th:replace="_fragments/footer :: js-imports(~{::.custom-script})">
54+
<div th:replace="~{_fragments/footer :: js-imports(~{::.custom-script})}">
5555
<script class="custom-script" th:src="@{/static/js/custom.js}"></script>
5656
</div>
5757

src/main/resources/templates/user/signup.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5"
33
xmlns:th="http://www.thymeleaf.org">
44

5-
<head th:replace="_fragments/header :: head(~{:: title}, ~{:: .custom-link})">
5+
<head th:replace="~{_fragments/header :: head(~{:: title}, ~{:: .custom-link})}">
66
<title> Note App - Signup</title>
77
<!-- we can do the following to add extra css on this page -->
88
<link class="custom-link" th:href="@{/static/css/some-custom-this-page-only.css}"/>
99
</head>
1010
<body>
1111

12-
<div th:replace="_fragments/header :: headerbar"></div>
12+
<div th:replace="~{_fragments/header :: headerbar}"></div>
1313

1414
<div class="container">
1515
<div class="card-deck mb-3">
@@ -82,11 +82,11 @@ <h4 class="mb-3">User Registration</h4>
8282
</div>
8383
</div>
8484

85-
<div th:replace="_fragments/footer :: page-footer" th:remove="tag"></div>
85+
<div th:replace="~{_fragments/footer :: page-footer}" th:remove="tag"></div>
8686

8787
</div>
8888

89-
<div th:replace="_fragments/footer :: js-imports(~{::.custom-script})">
89+
<div th:replace="~{_fragments/footer :: js-imports(~{::.custom-script})}">
9090
<script class="custom-script" th:src="@{/static/js/custom.js}"></script>
9191
</div>
9292

0 commit comments

Comments
 (0)