summaryrefslogtreecommitdiffstats
path: root/templates/admin/index.html
blob: 5af84975ef5175ba17f0d36f46305725cae0c56f (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="logout">
            <p><a href="{{ basepath }}/logout">Log Out</a></p>
        </div>
        <div id="options">
            {% if user.is_admin %}
                <p>Login plugins:</p>
                <ul>
                {% for p in available %}
                    <li> {{ p }} -
                    {% if p in enabled %}
                        <a href="{{ basepath }}/admin/login/{{ p }}/disable">Disable</a> -
                        <a href="{{ basepath }}/admin/login/{{ p }}">Configure</a>
                    {% else %}
                        <a href="{{ basepath }}/admin/login/{{ p }}/enable">Enable</a>
                    {% endif %}
                    </li>
                {% endfor %}
                </ul>
                <p>Plugins order: [list here and form button to change?]</p>
            {% endif %}
        </div>
        <div id="home">
            <p><a href="{{ basepath }}/">Home</a></p>
        </div>
    </div>
</body>
</html>