templates/base.html
author nishanth
Mon, 12 Apr 2010 13:49:00 +0530
changeset 14 cd6911eaac2c
child 15 b06f0fefbd20
permissions -rw-r--r--
moved templates into templates directory and added user in context .

<html>
<head>
<title>
{% block title %}
Workshop App
{% endblock %}
</title></head>
<body>
{% if user.is_authenticated %}
	Welcome {{user.get_full_name}} | 
	<a href="/reg/profile/edit">My Profile</a> |
	<a href="/reg/logout">Logout</a>
{% else %}
	<a href="/reg/login/">Login</a> |
	<a href="/reg/register/">Register</a>
{% endif %}
<br />
{% block content %}
{% endblock %}
</body>
</html>