]>
Commit | Line | Data |
---|---|---|
1 | <!DOCTYPE html> | |
2 | <html lang="en"> | |
3 | <head> | |
4 | ||
5 | {% block title %}<title>Tranquillity</title>{% endblock %} | |
6 | <meta charset="utf-8"> | |
7 | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
8 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
9 | ||
10 | <!-- Add additional CSS in static file --> | |
11 | {% load static %} | |
12 | <link rel="stylesheet" href="{% static 'css/styles.css' %}"> | |
13 | </head> | |
14 | ||
15 | <body> | |
16 | ||
17 | <div class="container-fluid"> | |
18 | ||
19 | <div class="row"> | |
20 | <div class="col-sm-2"> | |
21 | {% block sidebar %} | |
22 | <ul class="sidebar-nav"> | |
23 | <li><a href="{% url 'index' %}">Home</a></li> | |
24 | {% if user.is_authenticated %} | |
25 | <li>User: {{ user.get_username }}</li> | |
26 | <li><a href="{% url 'logout'%}?next={{request.path}}">Logout</a></li> | |
27 | {% else %} | |
28 | <li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li> | |
29 | {% endif %} | |
30 | </ul> | |
31 | {% endblock %} | |
32 | </div> | |
33 | <div class="col-sm-10 "> | |
34 | {% block content %}{% endblock %} | |
35 | </div> | |
36 | </div> | |
37 | ||
38 | </div> | |
39 | </body> | |
40 | </html> |