templates/index.html
author nishanth
Fri, 16 Apr 2010 16:37:28 +0530
changeset 75 bda9ee536063
parent 58 a26c82f593f0
child 85 eb7c03eb3bb4
permissions -rw-r--r--
changed the urls to /workshop/registration/.. from /reg/.. in all the templates

{% 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}}</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 %}