Added a controller, that lists the pages, the user is an adminitrator of
[examples/facebook-app] / src / main / webapp / thymeleaf / pages.html
diff --git a/src/main/webapp/thymeleaf/pages.html b/src/main/webapp/thymeleaf/pages.html
new file mode 100644 (file)
index 0000000..5e8532a
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
+  <head>
+    <title>Pages</title>
+  </head>
+  <body>
+    <p>Back <a href="home.html" th:href="@{/}">HOME</a></p>
+    <hr />
+    <h1>The permissions you granted to this app</h1>
+    <ul>
+      <li th:each="permission : ${permissions}" th:text="${permission}">public_profile</li>
+    </ul>
+    <h1>Pages, you are an administrator of</h1>
+    <ul th:each="account : ${accounts}">
+      <li><strong>ID:</strong> <em th:text="${account.id}">123456789</em></li>
+      <li><strong>Name:</strong> <em th:text="${account.name}">Spielwiese</em></li>
+      <li><strong>Category:</strong> <em th:text="${account.category}">Unknown</em></li>
+    </ul>
+  </body>
+</html>