Added a second page to proof, that the connection is persisted
[examples/facebook-app] / src / main / resources / templates / profile.html
diff --git a/src/main/resources/templates/profile.html b/src/main/resources/templates/profile.html
new file mode 100644 (file)
index 0000000..f0b3dab
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
+  <head>
+    <title>Hello Facebook</title>
+  </head>
+  <body>
+    <p>Back <a href="home.html" th:href="@{/}">HOME</a></p>
+    <hr />
+    <h1>Public available profile-data</h1>
+    <ul>
+      <li><strong>ID:</strong> <em th:text="${profile.id}">123456789</em></li>
+      <li><strong>Name:</strong> <em th:text="${profile.name}">Kai Moritz</em></li>
+      <li><strong>First Name:</strong> <em th:text="${profile.firstName}">Kai</em></li>
+      <li><strong>Last Name:</strong> <em th:text="${profile.lastName}">Moritz</em></li>
+      <li><strong>Gender:</strong> <em th:text="${profile.gender}">male</em></li>
+      <li><strong>Verified:</strong> <em th:text="${profile.verified}">true</em></li>
+      <li th:if="${profile.cover}"><strong>Cover:</strong> <img src="" th:src="${profile.cover.source}" alt="1234567" th:alt="${profile.cover.id}" /></li>
+    </ul>
+  </body>
+</html>