diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 9 | ||||
-rw-r--r-- | templates/login/index.html | 24 | ||||
-rw-r--r-- | templates/logout.html | 24 |
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> |