summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: c983af25e95bf96366c41144dbc6c1c832ffc258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!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="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>