Skip to content

Commit

Permalink
syqu22#11 | Hendi Santika | Bug Fix Fragment βœοΈπŸ“— :octocat: πŸ³β¬†
Browse files Browse the repository at this point in the history
  • Loading branch information
hendisantika committed May 26, 2024
1 parent f18058e commit 9e1cadf
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 45 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/templates/about.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">

Expand All @@ -17,8 +17,8 @@ <h4 th:text="#{about.text}"></h4>

</div>

<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>

</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/cart.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">
<div th:if="${!products.isEmpty()}" class="col-3">
Expand Down Expand Up @@ -40,8 +40,8 @@ <h3 th:text="#{cart.total} + ' ' + ${totalPrice}"></h3>">
</div>
</div>

<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>

</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/error/403.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">
<div class="starter-template">
Expand All @@ -17,7 +17,7 @@ <h3 th:text="#{error.no_access}"></h3>
</div>


<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>
</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/error/404.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">
<div class="starter-template">
Expand All @@ -17,7 +17,7 @@ <h3 th:text="#{error.no_page}"></h3>
</div>


<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>
</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/error/500.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">
<div class="starter-template">
Expand All @@ -17,7 +17,7 @@ <h3 th:text="#{error.internal}"></h3>
</div>


<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>
</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/error/error.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">
<div class="starter-template">
Expand All @@ -17,7 +17,7 @@ <h3 th:text="#{error.unhandled}"></h3>
</div>


<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>
</body>

</html>
</html>
11 changes: 6 additions & 5 deletions src/main/resources/templates/home.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">
<div class="row">
Expand All @@ -30,7 +30,8 @@ <h3>Category</h3>
<a th:href="@{'product/edit/' + ${product.getId()}}" ><i class="fas fa-wrench"></i></a>
</button>
</div>
<img class="card-img-top" th:if="${!product.getImage_url().isEmpty()}" th:src="${product.getImage_url()}" alt="Card image cap">
<img alt="Card image cap" class="card-img-top"
th:if="${!product.getImageUrl().isEmpty()}" th:src="${product.getImageUrl()}">
<div class="card-body">
<h4 class="card-title" th:text="${product.getName()}"></h4>
<p class="card-text" th:text="${product.getDescription()}"></p>
Expand All @@ -47,8 +48,8 @@ <h4 class="card-title" th:text="${product.getName()}"></h4>
</div>
</div>

<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>

</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>
<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3">
Expand Down Expand Up @@ -40,7 +40,7 @@ <h1 th:text="#{login.sign_in}"></h1>
</div>
</div>
</div>
<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>
</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/product.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">
<div class="row" style="margin-top:20px">
Expand Down Expand Up @@ -50,8 +50,8 @@ <h1 th:text="#{admin.create.product}"></h1>
</div>
</div>

<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>

</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/register.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>
<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>
<div class="container">
<div class="row" style="margin-top:20px">
<div class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3">
Expand Down Expand Up @@ -68,7 +68,7 @@ <h1 th:text="#{register.title}"></h1>
</div>
</div>
</div>
<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>
</body>

</html>
</html>
8 changes: 4 additions & 4 deletions src/main/resources/templates/user.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="fragments/header :: header-css">
<head th:replace="~{fragments/header :: header-css}">
</head>

<body>

<div th:replace="fragments/header :: header"></div>
<div th:replace="~{fragments/header :: header}"></div>

<div class="container">
<h2 th:text="#{user.title}"></h2>
Expand All @@ -19,8 +19,8 @@ <h3 th:text="#{user.city} + ': ' + ${user.getCity()}"></h3>
<h3 th:text="#{user.gender} + ': ' + ${user.getGender()}"></h3>
</div>

<div th:replace="fragments/footer :: footer"></div>
<div th:replace="~{fragments/footer :: footer}"></div>

</body>

</html>
</html>

0 comments on commit 9e1cadf

Please sign in to comment.