summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-11-21 09:34:56 +0200
committerLars Wirzenius <liw@liw.fi>2018-11-21 09:34:56 +0200
commit3ca5fe62a65510508ba07e5ec8117815db9a0555 (patch)
tree229ea4f1c4bbce9a4907d391e37b0a5c51a50e2e /templates
parent152f3f269aef562061f282857bab2798dc3e1e2c (diff)
downloadeffi-reg-3ca5fe62a65510508ba07e5ec8117815db9a0555.tar.gz
Change: use jinj2 templates in files instead of hardcoded strings
Diffstat (limited to 'templates')
-rw-r--r--templates/logged-in.j214
-rw-r--r--templates/not-logged-in.j29
2 files changed, 23 insertions, 0 deletions
diff --git a/templates/logged-in.j2 b/templates/logged-in.j2
new file mode 100644
index 0000000..4fe6c28
--- /dev/null
+++ b/templates/logged-in.j2
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>Not logged int</title>
+</head>
+<body>
+ <p><a href="/logout">Log out</a></p>
+ <p>You ARE logged in. Your information:</p>
+ <blockquote>
+ <p>Full name: {{ member.fullname }}</p>
+ <p>Email: {{ member.email }}</p>
+ </blockquote>
+</body>
+</html>
diff --git a/templates/not-logged-in.j2 b/templates/not-logged-in.j2
new file mode 100644
index 0000000..4ac097b
--- /dev/null
+++ b/templates/not-logged-in.j2
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>Not logged int</title>
+</head>
+<body>
+ <p>You are NOT logged in. <a href="/login">Log in</a></p>
+</body>
+</html>