templates/index.html
changeset 50 fd37bbece439
parent 48 9a52ca561c1d
child 58 a26c82f593f0
--- a/templates/index.html	Thu Apr 15 16:40:30 2010 +0530
+++ b/templates/index.html	Thu Apr 15 17:03:16 2010 +0530
@@ -6,15 +6,21 @@
 		You can know about workshops by clicking on workshops link on the left.<br />		
 	{% else %}
 		Welcome {{user.get_full_name}}<br /><br >
-	{% endif %}
-	
-	{% if user.is_active and registered_events %}
-		You have registered for the following workshops:
-		<ul>
-		{% for a_event in registered_events %}
-			<li><a href="/reg/event/view/{{a_event.key}}">{{a_event.title}}</a></li>
-		{% endfor %}
-		</ul>
+		
+		
+		{% if user.is_active %}
+			{% if registered_events %}
+				You have registered for the following workshops:
+				<ul>
+				{% for a_event in registered_events %}
+					<li><a href="/reg/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="/reg/resend_activation/?email={{email}}">Click here</a> to resend the activation email.<br />
+		{% endif %}
 	{% endif %}
 	
 	{% if user.is_staff %}