author | nishanth |
Thu, 15 Apr 2010 16:15:54 +0530 | |
changeset 48 | 9a52ca561c1d |
parent 47 | e1895d2ede97 |
child 50 | fd37bbece439 |
permissions | -rw-r--r-- |
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 > |
26
9d18daf5277f
now the "you must register" link appears on view event page .
nishanth
parents:
19
diff
changeset
|
9 |
{% endif %} |
47 | 10 |
|
11 |
{% if user.is_active and registered_events %} |
|
48
9a52ca561c1d
fixed a bug in activate user and made a change in activated template .
nishanth
parents:
47
diff
changeset
|
12 |
You have registered for the following workshops: |
47 | 13 |
<ul> |
14 |
{% for a_event in registered_events %} |
|
15 |
<li><a href="/reg/event/view/{{a_event.key}}">{{a_event.title}}</a></li> |
|
16 |
{% endfor %} |
|
17 |
</ul> |
|
18 |
{% endif %} |
|
19 |
||
18
7dae32a2439b
prettified the home page and moved workshops to another page called workshops.
nishanth
parents:
14
diff
changeset
|
20 |
{% if user.is_staff %} |
7dae32a2439b
prettified the home page and moved workshops to another page called workshops.
nishanth
parents:
14
diff
changeset
|
21 |
<a href="/reg/event/create">Create an event</a><br /> |
7dae32a2439b
prettified the home page and moved workshops to another page called workshops.
nishanth
parents:
14
diff
changeset
|
22 |
{% endif %} |
14
cd6911eaac2c
moved templates into templates directory and added user in context .
nishanth
parents:
diff
changeset
|
23 |
{% endblock %} |