diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-01-28 13:09:54 +0100 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-02-17 10:43:47 -0500 |
commit | 739ca49e93d7bf534bfc401633a612e16ff19bc6 (patch) | |
tree | 499128d4f00928a54cb3e05e6be60492d451ac30 /templates/index.html | |
parent | 60f70685c69980bb9f458e4a65efd4cc54cd60f8 (diff) | |
download | ipsilon-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/index.html')
-rw-r--r-- | templates/index.html | 71 |
1 files changed, 30 insertions, 41 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 |