templates/index.html
author nishanth
Thu, 15 Apr 2010 16:01:03 +0530
changeset 47 e1895d2ede97
parent 34 c12a0b773720
child 48 9a52ca561c1d
permissions -rw-r--r--
now registered workshops appear on home page .

{% 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 />
	{% endif %}
	
	{% if user.is_active and registered_events %}
		Workshops you have registered for:
		<ul>
		{% for a_event in registered_events %}
			<li><a href="/reg/event/view/{{a_event.key}}">{{a_event.title}}</a></li>
		{% endfor %}
		</ul>
	{% endif %}
	
	{% if user.is_staff %}
		<a href="/reg/event/create">Create an event</a><br />	
	{% endif %}
{% endblock %}