Fix Imports
[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>Ipsilon</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="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>
35 </body>
36 </html>