diff options
author | Mike Crute <mcrute@gmail.com> | 2012-12-04 16:21:32 -0500 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2012-12-11 15:27:46 -0500 |
commit | bd95993653a1b94d07316e24a0f519d00f9359d6 (patch) | |
tree | 45f44092fde26ad38db1aaaf123d7e2173fa973e /templates/index.html | |
parent | ab626f31a0645d87560d242a20dd60e01b3d3b46 (diff) | |
download | django-precompiler-bd95993653a1b94d07316e24a0f519d00f9359d6.tar.bz2 django-precompiler-bd95993653a1b94d07316e24a0f519d00f9359d6.tar.xz django-precompiler-bd95993653a1b94d07316e24a0f519d00f9359d6.zip |
User can login and logout
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html index ff76c3e..1e497a5 100644 --- a/templates/index.html +++ b/templates/index.html | |||
@@ -6,6 +6,11 @@ | |||
6 | <h1>Hello Codemash</h1> | 6 | <h1>Hello Codemash</h1> |
7 | <ul> | 7 | <ul> |
8 | <li><a href="{% url 'contact:form' %}">Contact Us</a></li> | 8 | <li><a href="{% url 'contact:form' %}">Contact Us</a></li> |
9 | {% if user.is_authenticated %} | ||
10 | <li><a href="{% url 'auth:logout' %}">Logout ({{ user.username }})</a></li> | ||
11 | {% else %} | ||
12 | <li><a href="{% url 'auth:login' %}">Login</a></li> | ||
13 | {% endif %} | ||
9 | </ul> | 14 | </ul> |
10 | <p>You've just created your first Django page. Pretty cool, eh?</p> | 15 | <p>You've just created your first Django page. Pretty cool, eh?</p> |
11 | {% endblock %} | 16 | {% endblock %} |