diff options
author | Mike Crute <mcrute@gmail.com> | 2012-12-04 16:52:26 -0500 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2012-12-26 20:52:30 -0500 |
commit | d3e1650e3a3b82267bb1eb11b23c0f4d6ae0b1a3 (patch) | |
tree | 9b52200336316027b7a2ce7da5f1a870226928e4 /templates | |
parent | ce3b9091f080c2a33a60d23af99de3222e570024 (diff) | |
download | django-precompiler-d3e1650e3a3b82267bb1eb11b23c0f4d6ae0b1a3.tar.bz2 django-precompiler-d3e1650e3a3b82267bb1eb11b23c0f4d6ae0b1a3.tar.xz django-precompiler-d3e1650e3a3b82267bb1eb11b23c0f4d6ae0b1a3.zip |
Enable admin site
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index 136c66d..a394d69 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -7,6 +7,20 @@ | |||
7 | <meta name="viewport" content="width=device-width"> | 7 | <meta name="viewport" content="width=device-width"> |
8 | </head> | 8 | </head> |
9 | <body> | 9 | <body> |
10 | <ul> | ||
11 | <li><a href="{% url 'home' %}">Home</a></li> | ||
12 | <li><a href="{% url 'contact:form' %}">Contact Us</a></li> | ||
13 | {% if user.is_staff %} | ||
14 | <li><a href="{% url 'admin:index' %}">Admin Area</a></li> | ||
15 | {% endif %} | ||
16 | {% if user.is_authenticated %} | ||
17 | <li><a href="{% url 'account:profile' %}">{{ user.username }}'s profile</a></li> | ||
18 | <li><a href="{% url 'auth:logout' %}">Logout ({{ user.username }})</a></li> | ||
19 | {% else %} | ||
20 | <li><a href="{% url 'auth:login' %}">Login</a></li> | ||
21 | <li><a href="{% url 'account:create' %}">Register</a></li> | ||
22 | {% endif %} | ||
23 | </ul> | ||
10 | {% block content %} | 24 | {% block content %} |
11 | {% endblock %} | 25 | {% endblock %} |
12 | </body> | 26 | </body> |