Implement login plugin infrastructure
[cascardo/ipsilon.git] / templates / index.html
1 <!doctype html>
2 <html lang="en">
3 <head>
4     <meta charset="UTF-8"></meta>
5     <title>{{ title }}</title>
6     <link href="{{ basepath }}/ui/ipsilon.css" type="text/css" rel="stylesheet"></link>
7     <link href="{{ basepath }}/ui/favicon.ico" type="image/ico" rel="icon"></link>
8 </head>
9 <body>
10     <div id="container">
11         <div id="logo">
12             <p><a href="{{ basepath }}">Ipsilon</a></p>
13         </div>
14         <div id="admin">
15             {% if user.is_admin %}
16                 <a href="admin">admin</a>
17             {% endif %}
18         </div>
19         <div id="welcome">
20             {% if user.name %}
21                 <p>Welcome {{ user.fullname }}</p>
22             {% endif %}
23         </div>
24         <div id="content">
25             {% if not user.name %}
26                 <p>Please <a href="{{ basepath }}/login">Log In</a>
27             {% elif user.sites %}
28                 <p>Registered application shortcuts:</p>
29                 {% for site in user.sites %}
30                     <p><a href="{{ site.link }}">{{ site.name }}</a></p>
31                 {% endfor %}
32             {% endif %}
33         </div>
34         <div id="logout">
35             {% if user.name %}
36                 <p><a href="{{ basepath }}/logout">Log Out</a></p>
37             {% endif %}
38         </div>
39     </div>
40 </body>
41 </html>