templates/index.html
author nishanth
Fri, 16 Apr 2010 17:11:47 +0530
changeset 83 b8f6bc32d8f7
parent 75 bda9ee536063
child 85 eb7c03eb3bb4
permissions -rw-r--r--
added line break in view event

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