templates/index.html
author nishanth
Tue, 29 Jun 2010 16:12:29 +0530
changeset 103 ee9261c5ba18
parent 86 9946ff231b76
permissions -rw-r--r--
the list_attendees page looks better now

{% 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="/workshop/registration/event/view/{{a_event.key}}">{{a_event.title}}
					at {{a_event.venue}}</a></li>
				{% endfor %}
				</ul>
			{% endif %}
		{% else %}
			Your account is inactive. An activation email has been sent to your email address.<br />
			<a href="/workshop/registration/resend_activation/?email={{user.email}}">Click here</a> to resend the activation email.<br />
		{% endif %}
	{% endif %}
	
	{% if user.is_staff %}
		<a href="/workshop/registration/event/create">Create an event</a><br />	
	{% endif %}
{% endblock %}