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