Skip to content

Commit

Permalink
fixed the naming of head fragment throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldpearson committed Jan 19, 2019
1 parent 4f84baf commit 521e889
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/templates/error.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:insert="~{fragments/layout :: header}"/>
<head th:insert="~{fragments/layout :: head}"/>

<body>

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/layout.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:fragment="header">
<head th:fragment="head">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:insert="~{fragments/layout :: header}"/>
<head th:insert="~{fragments/layout :: head}"/>

<body>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >

<head th:insert="~{fragments/layout :: header}"/>
<head th:insert="~{fragments/layout :: head}"/>

<body>

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/producers/producerDetails.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:insert="~{fragments/layout :: header}"/>
<head th:insert="~{fragments/layout :: head}"/>


<body>
Expand Down Expand Up @@ -49,15 +49,15 @@ <h2 align="center">Wines</h2>
<table class="table table-hover">
<thead class="thead-light">
<tr>
<th>Name</th>
<th>Label</th>
<th>Vintage</th>
<th>Appellation</th>
<th>Varietal</th>
<th>Country</th>
<th></th>
</tr>
<tr th:each="wine : ${producer.wines}">
<td th:text="${wine.name}">Name</td>
<td th:text="${wine.label}">Name</td>
<td th:text="${wine.vintage}">Vintage</td>
<td th:text="${producer.appellation}">Appellation</td>
<td th:text="${wine.varietal}">Varietal</td>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/producers/producersList.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<html xmlns:th="http://www.thymeleaf.org">

<head th:insert="~{fragments/layout :: header}"/>
<head th:insert="~{fragments/layout :: head}"/>

<body>

Expand All @@ -29,7 +29,7 @@ <h2 align="center">Producers</h2>
</td>
<td th:text="${producer.country}"></td>
<td th:text="${producer.appellation}"></td>
<td><span th:each="wine : ${producer.wines}" th:utext="${wine.name} + '<br/>'"></span></td>
<td><span th:each="wine : ${producer.wines}" th:utext="${wine.label} + '<br/>'"></span></td>
<td><a th:href="@{{id}/edit(id=${producer.id})}" class="btn btn-default">Update</a></td>
</tr>
</tbody>
Expand Down

0 comments on commit 521e889

Please sign in to comment.