templates/index.html
author nishanth
Thu, 15 Apr 2010 17:03:16 +0530
changeset 50 fd37bbece439
parent 48 9a52ca561c1d
child 58 a26c82f593f0
permissions -rw-r--r--
now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .

{% extends "base.html" %}
{% block content %}
	{% if not user.is_authenticated %}
		Welcome Guest.<br />
		<br />
		You can know about workshops by clicking on workshops link on the left.<br />		
	{% else %}
		Welcome {{user.get_full_name}}<br /><br >
		
		
		{% if user.is_active %}
			{% if registered_events %}
				You have registered for the following workshops:
				<ul>
				{% for a_event in registered_events %}
					<li><a href="/reg/event/view/{{a_event.key}}">{{a_event.title}}</a></li>
				{% endfor %}
				</ul>
			{% endif %}
		{% else %}
			Your account is inactive. An activation email has been sent to your email address.<br />
			<a href="/reg/resend_activation/?email={{email}}">Click here</a> to resend the activation email.<br />
		{% endif %}
	{% endif %}
	
	{% if user.is_staff %}
		<a href="/reg/event/create">Create an event</a><br />	
	{% endif %}
{% endblock %}