File tree 7 files changed +32
-32
lines changed
src/main/resources/templates
7 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en " xmlns ="http://www.w3.org/1999/xhtml " xmlns:th ="http://www.thymeleaf.org ">
3
3
4
- < head th:replace ="_fragments/header :: head(~{this :: title}, ~{this :: .custom-link}) ">
4
+ < head th:replace ="~{ _fragments/header :: head(~{this :: title}, ~{this :: .custom-link})} ">
5
5
< title > Opps!</ title >
6
6
<!-- we can do the following to add extra css on this page -->
7
7
< link class ="custom-link " th:href ="@{/static/css/some-custom-this-page-only.css} "/>
8
8
</ head >
9
9
< body >
10
10
11
- < div th:replace ="_fragments/header :: headerbar "> </ div >
11
+ < div th:replace ="~{ _fragments/header :: headerbar} "> </ div >
12
12
13
13
14
14
< div class ="px-3 py-3 pt-md-8 pb-md-8 mx-auto text-center ">
26
26
27
27
</ div >
28
28
29
- < div th:replace ="_fragments/footer :: page-footer "> </ div >
29
+ < div th:replace ="~{ _fragments/footer :: page-footer} "> </ div >
30
30
31
31
</ div >
32
32
</ div >
33
33
34
- < div th:replace ="_fragments/footer :: js-imports(~{this :: .custom-script}) ">
34
+ < div th:replace ="~{ _fragments/footer :: js-imports(~{this :: .custom-script})} ">
35
35
< script class ="custom-script " th:src ="@{/static/js/custom.js} "> </ script >
36
36
</ div >
37
37
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en " xmlns ="http://www.w3.org/1999/xhtml " xmlns:th ="http://www.thymeleaf.org ">
3
3
4
- < head th:replace ="_fragments/header :: head(~{:: title}, ~{:: .custom-link}) ">
4
+ < head th:replace ="~{ _fragments/header :: head(~{:: title}, ~{:: .custom-link})} ">
5
5
< title > Note App - HOME</ title >
6
6
<!-- we can do the following to add extra css on this page -->
7
7
< link class ="custom-link " th:href ="@{/static/css/some-custom-this-page-only.css} "/>
8
8
</ head >
9
9
< body >
10
10
11
- < div th:replace ="_fragments/header :: headerbar "> </ div >
11
+ < div th:replace ="~{ _fragments/header :: headerbar} "> </ div >
12
12
13
13
14
14
< div class ="container ">
29
29
< div sec:authorize ="isAuthenticated() ">
30
30
< form action ="# " method ="post " th:action ="@{/note/add} " th:object ="${note} "
31
31
enctype ="multipart/form-data ">
32
- < div th:replace ="note/_notes :: note-editor "> </ div >
32
+ < div th:replace ="~{ note/_notes :: note-editor} "> </ div >
33
33
34
34
< button class ="btn btn-primary btn-sm btn-block " type ="submit " id ="postNote-btn "> Post Note</ button >
35
35
</ form >
36
36
< hr />
37
37
</ div >
38
38
39
39
< th:block th:each ="note : ${notes} ">
40
- < th:block th:replace ="note/_notes :: note-box ">
40
+ < th:block th:replace ="~{ note/_notes :: note-box} ">
41
41
42
42
</ th:block >
43
43
</ th:block >
50
50
</ div >
51
51
</ div >
52
52
53
- < div th:replace ="_fragments/footer :: page-footer " th:remove ="tag "> </ div >
53
+ < div th:replace ="~{ _fragments/footer :: page-footer} " th:remove ="tag "> </ div >
54
54
55
55
</ div >
56
56
57
- < div th:replace ="_fragments/footer :: js-imports(~{::.custom-script}) ">
57
+ < div th:replace ="~{ _fragments/footer :: js-imports(~{::.custom-script})} ">
58
58
< script class ="custom-script " th:src ="@{/static/js/custom.js} "> </ script >
59
59
</ div >
60
60
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en " xmlns ="http://www.w3.org/1999/xhtml " xmlns:th ="http://www.thymeleaf.org ">
3
3
4
- < head th:replace ="_fragments/header :: head(~{:: title}, ~{:: .custom-link}) ">
4
+ < head th:replace ="~{ _fragments/header :: head(~{:: title}, ~{:: .custom-link})} ">
5
5
< title > Notes</ title >
6
6
<!-- we can do the following to add extra css on this page -->
7
7
< link class ="custom-link " th:href ="@{/static/css/some-custom-this-page-only.css} "/>
8
8
</ head >
9
9
10
10
< body >
11
11
12
- < div th:replace ="_fragments/header :: headerbar "> </ div >
12
+ < div th:replace ="~{ _fragments/header :: headerbar} "> </ div >
13
13
14
14
15
15
< div class ="container ">
27
27
</ div >
28
28
29
29
< 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 >
31
31
32
32
< button class ="btn btn-primary btn-sm btn-block " type ="submit " id ="postNote-btn "> Post Note</ button >
33
33
</ form >
@@ -73,11 +73,11 @@ <h2>Notes</h2>
73
73
74
74
</ div >
75
75
76
- < div th:replace ="_fragments/footer :: page-footer "> </ div >
76
+ < div th:replace ="~{ _fragments/footer :: page-footer} "> </ div >
77
77
78
78
</ div >
79
79
80
- < div th:replace ="_fragments/footer :: js-imports(~{::.custom-script}) ">
80
+ < div th:replace ="~{ _fragments/footer :: js-imports(~{::.custom-script})} ">
81
81
< script class ="custom-script " th:src ="@{/static/js/custom.js} "> </ script >
82
82
</ div >
83
83
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en " xmlns ="http://www.w3.org/1999/xhtml " xmlns:th ="http://www.thymeleaf.org ">
3
3
4
- < head th:replace ="_fragments/header :: head(~{:: title}, ~{:: .custom-link}) ">
4
+ < head th:replace ="~{ _fragments/header :: head(~{:: title}, ~{:: .custom-link})} ">
5
5
< title > Edit Note</ title >
6
6
<!-- we can do the following to add extra css on this page -->
7
7
< link class ="custom-link " th:href ="@{/static/css/some-custom-this-page-only.css} "/>
8
8
</ head >
9
9
10
10
< body >
11
11
12
- < div th:replace ="_fragments/header :: headerbar "> </ div >
12
+ < div th:replace ="~{ _fragments/header :: headerbar} "> </ div >
13
13
14
14
15
15
< div class ="container ">
18
18
19
19
< form action ="# " method ="post " th:action =@{/note/edit} th:object ="${note} " enctype ="multipart/form-data ">
20
20
21
- < div th:replace ="note/_notes :: note-editor "> </ div >
21
+ < div th:replace ="~{ note/_notes :: note-editor} "> </ div >
22
22
23
23
< button class ="btn btn-primary btn-sm btn-block " type ="submit " id ="updateNote-btn "> Update Note</ button >
24
24
</ form >
27
27
</ div >
28
28
</ div >
29
29
30
- < div th:replace ="_fragments/footer :: page-footer "> </ div >
30
+ < div th:replace ="~{ _fragments/footer :: page-footer} "> </ div >
31
31
32
32
</ div >
33
33
34
- < div th:replace ="_fragments/footer :: js-imports(~{::.custom-script}) ">
34
+ < div th:replace ="~{ _fragments/footer :: js-imports(~{::.custom-script})} ">
35
35
< script class ="custom-script " th:src ="@{/static/js/custom.js} "> </ script >
36
36
</ div >
37
37
Original file line number Diff line number Diff line change 2
2
< html xmlns ="http://www.w3.org/1999/xhtml "
3
3
xmlns:th ="http://www.thymeleaf.org ">
4
4
5
- < head th:replace ="_fragments/header :: head(~{:: title}, ~{:: .custom-link}) ">
5
+ < head th:replace ="~{ _fragments/header :: head(~{:: title}, ~{:: .custom-link})} ">
6
6
< title > Note App - Signup</ title >
7
7
<!-- we can do the following to add extra css on this page -->
8
8
< link class ="custom-link " th:href ="@{/static/css/some-custom-this-page-only.css} "/>
9
9
</ head >
10
10
< body >
11
11
12
- < div th:replace ="_fragments/header :: headerbar "> </ div >
12
+ < div th:replace ="~{ _fragments/header :: headerbar} "> </ div >
13
13
14
14
< div class ="container ">
15
15
< div class ="card-deck mb-3 ">
@@ -34,11 +34,11 @@ <h4 class="mb-3">Update Password</h4>
34
34
</ div >
35
35
</ div >
36
36
37
- < div th:replace ="_fragments/footer :: page-footer " th:remove ="tag "> </ div >
37
+ < div th:replace ="~{ _fragments/footer :: page-footer} " th:remove ="tag "> </ div >
38
38
39
39
</ div >
40
40
41
- < div th:replace ="_fragments/footer :: js-imports(~{::.custom-script}) ">
41
+ < div th:replace ="~{ _fragments/footer :: js-imports(~{::.custom-script})} ">
42
42
< script class ="custom-script " th:src ="@{/static/js/custom.js} "> </ script >
43
43
</ div >
44
44
Original file line number Diff line number Diff line change 2
2
< html xmlns ="http://www.w3.org/1999/xhtml "
3
3
xmlns:th ="http://www.thymeleaf.org ">
4
4
5
- < head th:replace ="_fragments/header :: head(~{:: title}, ~{:: .custom-link}) ">
5
+ < head th:replace ="~{ _fragments/header :: head(~{:: title}, ~{:: .custom-link})} ">
6
6
< title > Note App - Signup</ title >
7
7
<!-- we can do the following to add extra css on this page -->
8
8
< link class ="custom-link " th:href ="@{/static/css/some-custom-this-page-only.css} "/>
9
9
</ head >
10
10
< body >
11
11
12
- < div th:replace ="_fragments/header :: headerbar "> </ div >
12
+ < div th:replace ="~{ _fragments/header :: headerbar} "> </ div >
13
13
14
14
< div class ="container ">
15
15
< div class ="card-deck mb-3 ">
@@ -47,11 +47,11 @@ <h4 class="mb-3">User Profile</h4>
47
47
</ div >
48
48
</ div >
49
49
50
- < div th:replace ="_fragments/footer :: page-footer " th:remove ="tag "> </ div >
50
+ < div th:replace ="~{ _fragments/footer :: page-footer} " th:remove ="tag "> </ div >
51
51
52
52
</ div >
53
53
54
- < div th:replace ="_fragments/footer :: js-imports(~{::.custom-script}) ">
54
+ < div th:replace ="~{ _fragments/footer :: js-imports(~{::.custom-script})} ">
55
55
< script class ="custom-script " th:src ="@{/static/js/custom.js} "> </ script >
56
56
</ div >
57
57
Original file line number Diff line number Diff line change 2
2
< html xmlns ="http://www.w3.org/1999/xhtml " xmlns:sec ="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5 "
3
3
xmlns:th ="http://www.thymeleaf.org ">
4
4
5
- < head th:replace ="_fragments/header :: head(~{:: title}, ~{:: .custom-link}) ">
5
+ < head th:replace ="~{ _fragments/header :: head(~{:: title}, ~{:: .custom-link})} ">
6
6
< title > Note App - Signup</ title >
7
7
<!-- we can do the following to add extra css on this page -->
8
8
< link class ="custom-link " th:href ="@{/static/css/some-custom-this-page-only.css} "/>
9
9
</ head >
10
10
< body >
11
11
12
- < div th:replace ="_fragments/header :: headerbar "> </ div >
12
+ < div th:replace ="~{ _fragments/header :: headerbar} "> </ div >
13
13
14
14
< div class ="container ">
15
15
< div class ="card-deck mb-3 ">
@@ -82,11 +82,11 @@ <h4 class="mb-3">User Registration</h4>
82
82
</ div >
83
83
</ div >
84
84
85
- < div th:replace ="_fragments/footer :: page-footer " th:remove ="tag "> </ div >
85
+ < div th:replace ="~{ _fragments/footer :: page-footer} " th:remove ="tag "> </ div >
86
86
87
87
</ div >
88
88
89
- < div th:replace ="_fragments/footer :: js-imports(~{::.custom-script}) ">
89
+ < div th:replace ="~{ _fragments/footer :: js-imports(~{::.custom-script})} ">
90
90
< script class ="custom-script " th:src ="@{/static/js/custom.js} "> </ script >
91
91
</ div >
92
92
You can’t perform that action at this time.
0 commit comments