From 2fb8bff093e49d95ab25eb8343ebbb1091f6e7a6 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 24 Jan 2014 14:26:15 -0500 Subject: Implement login plugin infrastructure Signed-off-by: Simo Sorce --- templates/index.html | 9 +++++++-- templates/login/index.html | 24 ++++++++++++++++++++++++ templates/logout.html | 24 ++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 templates/login/index.html create mode 100644 templates/logout.html (limited to 'templates') 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 @@
{% if user.is_admin %} @@ -23,7 +23,7 @@
{% if not user.name %} -

Please Log In +

Please Log In {% elif user.sites %}

Registered application shortcuts:

{% for site in user.sites %} @@ -31,6 +31,11 @@ {% endfor %} {% endif %}
+
+ {% if user.name %} +

Log Out

+ {% endif %} +
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 @@ + + + + + {{ title }} + + + + +
+ +
+ {% if user.is_admin %} + admin + {% endif %} +
+
+

Redirecting ... {{ redirect }}

+
+
+ + 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 @@ + + + + + {{ title }} + + + + +
+ +
+ {% if user.name %} +

Something prevented a successful logout

+

You are still logged in as {{ user.fullname }}

+ {% else %} +

Successfully logged out.

+

Return to Home page

+ {% endif %} +
+ + -- cgit