summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-01-24 14:26:15 -0500
committerSimo Sorce <simo@redhat.com>2014-01-24 17:32:21 -0500
commit2fb8bff093e49d95ab25eb8343ebbb1091f6e7a6 (patch)
treedd40e79a3a1239a8605effbc875e62ade800b167 /templates
parent2b9722213d76306fe6f3b9f2fe157b3459d28e3a (diff)
downloadipsilon-2fb8bff093e49d95ab25eb8343ebbb1091f6e7a6.tar.gz
ipsilon-2fb8bff093e49d95ab25eb8343ebbb1091f6e7a6.tar.xz
ipsilon-2fb8bff093e49d95ab25eb8343ebbb1091f6e7a6.zip
Implement login plugin infrastructure
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html9
-rw-r--r--templates/login/index.html24
-rw-r--r--templates/logout.html24
3 files changed, 55 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 157c938..c983af2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -9,7 +9,7 @@
<body>
<div id="container">
<div id="logo">
- <p>Ipsilon</p>
+ <p><a href="{{ basepath }}">Ipsilon</a></p>
</div>
<div id="admin">
{% if user.is_admin %}
@@ -23,7 +23,7 @@
</div>
<div id="content">
{% if not user.name %}
- <p>Please <a href="login">Log In</a>
+ <p>Please <a href="{{ basepath }}/login">Log In</a>
{% elif user.sites %}
<p>Registered application shortcuts:</p>
{% for site in user.sites %}
@@ -31,6 +31,11 @@
{% endfor %}
{% endif %}
</div>
+ <div id="logout">
+ {% if user.name %}
+ <p><a href="{{ basepath }}/logout">Log Out</a></p>
+ {% endif %}
+ </div>
</div>
</body>
</html>
diff --git a/templates/login/index.html b/templates/login/index.html
new file mode 100644
index 0000000..6b2e2cd
--- /dev/null
+++ b/templates/login/index.html
@@ -0,0 +1,24 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8"></meta>
+ <title>{{ title }}</title>
+ <link href="{{ basepath }}/ui/ipsilon.css" type="text/css" rel="stylesheet"></link>
+ <link href="{{ basepath }}/ui/favicon.ico" type="image/ico" rel="icon"></link>
+</head>
+<body>
+ <div id="container">
+ <div id="logo">
+ <p>Ipsilon</p>
+ </div>
+ <div id="admin">
+ {% if user.is_admin %}
+ <a href="admin">admin</a>
+ {% endif %}
+ </div>
+ <div id="login">
+ <p>Redirecting ... {{ redirect }}</p>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/templates/logout.html b/templates/logout.html
new file mode 100644
index 0000000..f6f61ac
--- /dev/null
+++ b/templates/logout.html
@@ -0,0 +1,24 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8"></meta>
+ <title>{{ title }}</title>
+ <link href="{{ basepath }}/ui/ipsilon.css" type="text/css" rel="stylesheet"></link>
+ <link href="{{ basepath }}/ui/favicon.ico" type="image/ico" rel="icon"></link>
+</head>
+<body>
+ <div id="container">
+ <div id="logo">
+ <p><a href="{{ basepath }}">Ipsilon</a></p>
+ </div>
+ <div id="logout">
+ {% if user.name %}
+ <p>Something prevented a successful logout</p>
+ <p>You are still logged in as {{ user.fullname }}</p>
+ {% else %}
+ <p>Successfully logged out.</p>
+ <p>Return to <a href="{{ basepath }}">Home</a> page</p>
+ {% endif %}
+ </div>
+</body>
+</html>