templates/index.html
author nishanth
Fri, 23 Apr 2010 16:36:40 +0530
changeset 99 cc2ed87ee896
parent 86 9946ff231b76
permissions -rw-r--r--
resolved a bug
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
     1
{% extends "base.html" %}
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
     2
{% block content %}
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     3
	{% if not user.is_authenticated %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     4
		Welcome Guest.<br />
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     5
		<br />
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     6
		You can know about workshops by clicking on workshops link on the left.<br />		
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     7
	{% else %}
48
9a52ca561c1d fixed a bug in activate user and made a change in activated template .
nishanth
parents: 47
diff changeset
     8
		Welcome {{user.get_full_name}}<br /><br >
50
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
     9
		
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    10
		
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    11
		{% if user.is_active %}
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    12
			{% if registered_events %}
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    13
				You have registered for the following workshops:
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    14
				<ul>
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    15
				{% for a_event in registered_events %}
85
eb7c03eb3bb4 added "at venue" on home page.
nishanth
parents: 75
diff changeset
    16
					<li><a href="/workshop/registration/event/view/{{a_event.key}}">{{a_event.title}}
86
9946ff231b76 fixed a typo.
nishanth
parents: 85
diff changeset
    17
					at {{a_event.venue}}</a></li>
50
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    18
				{% endfor %}
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    19
				</ul>
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    20
			{% endif %}
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    21
		{% else %}
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    22
			Your account is inactive. An activation email has been sent to your email address.<br />
75
bda9ee536063 changed the urls to /workshop/registration/.. from /reg/.. in all the templates
nishanth
parents: 58
diff changeset
    23
			<a href="/workshop/registration/resend_activation/?email={{user.email}}">Click here</a> to resend the activation email.<br />
50
fd37bbece439 now a user can login even if he is not active. he gets account inactive message on homepage. we have to make changes to other views suitably .
nishanth
parents: 48
diff changeset
    24
		{% endif %}
47
e1895d2ede97 now registered workshops appear on home page .
nishanth
parents: 34
diff changeset
    25
	{% endif %}
e1895d2ede97 now registered workshops appear on home page .
nishanth
parents: 34
diff changeset
    26
	
18
7dae32a2439b prettified the home page and moved workshops to another page called workshops.
nishanth
parents: 14
diff changeset
    27
	{% if user.is_staff %}
75
bda9ee536063 changed the urls to /workshop/registration/.. from /reg/.. in all the templates
nishanth
parents: 58
diff changeset
    28
		<a href="/workshop/registration/event/create">Create an event</a><br />	
18
7dae32a2439b prettified the home page and moved workshops to another page called workshops.
nishanth
parents: 14
diff changeset
    29
	{% endif %}
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    30
{% endblock %}