summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-01-28 13:09:54 +0100
committerSimo Sorce <simo@redhat.com>2014-02-17 10:43:47 -0500
commit739ca49e93d7bf534bfc401633a612e16ff19bc6 (patch)
tree499128d4f00928a54cb3e05e6be60492d451ac30 /templates
parent60f70685c69980bb9f458e4a65efd4cc54cd60f8 (diff)
downloadipsilon-739ca49e93d7bf534bfc401633a612e16ff19bc6.tar.gz
ipsilon-739ca49e93d7bf534bfc401633a612e16ff19bc6.tar.xz
ipsilon-739ca49e93d7bf534bfc401633a612e16ff19bc6.zip
Root pages
Signed-off-by: Petr Vobornik <pvoborni@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html71
-rw-r--r--templates/logout.html36
2 files changed, 42 insertions, 65 deletions
diff --git a/templates/index.html b/templates/index.html
index 1e21948..7d368cb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,41 +1,30 @@
-<!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="admin">
- {% if user.is_admin %}
- <a href="{{ basepath }}/admin">admin</a>
- {% endif %}
- </div>
- <div id="welcome">
- {% if user.name %}
- <p>Welcome {{ user.fullname }}</p>
- {% endif %}
- </div>
- <div id="content">
- {% if not user.name %}
- <p>Please <a href="{{ basepath }}/login">Log In</a>
- {% elif user.sites %}
- <p>Registered application shortcuts:</p>
- {% for site in user.sites %}
- <p><a href="{{ site.link }}">{{ site.name }}</a></p>
- {% endfor %}
- {% endif %}
- </div>
- <div id="logout">
- {% if user.name %}
- <p><a href="{{ basepath }}/logout">Log Out</a></p>
- {% endif %}
- </div>
- </div>
-</body>
-</html>
+{% extends "master.html" %}
+{% block main %}
+<div class="col-sm-12">
+ <div id="welcome">
+ {% if user.name %}
+ <p>Welcome {{ user.fullname }}!</p>
+ {% endif %}
+ </div>
+ <div id="content">
+ {% if not user.name %}
+ <p>Please <a href="{{ basepath }}/login">Log In</a>
+ {% elif user.sites %}
+ <p>Registered application shortcuts:</p>
+ {% for site in user.sites %}
+ <p><a href="{{ site.link }}">{{ site.name }}</a></p>
+ {% endfor %}
+ {% endif %}
+ </div>
+ <div id="authenticated">
+ {% if user.name %}
+ <p>
+ {% if user.is_admin %}
+ <a href="{{ basepath }}/admin" id="admin">Administration</a> |
+ {% endif %}
+ <a href="{{ basepath }}/logout" id="logout">Log Out</a>
+ </p>
+ {% endif %}
+ </div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/templates/logout.html b/templates/logout.html
index f6f61ac..016c9ab 100644
--- a/templates/logout.html
+++ b/templates/logout.html
@@ -1,24 +1,12 @@
-<!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>
+{% extends "master.html" %}
+{% block main %}
+<div id="logout" class="col-sm-12">
+{% 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>
+{% endblock %} \ No newline at end of file