author | Pawel Solyga <Pawel.Solyga@gmail.com> |
Sat, 21 Mar 2009 08:47:25 +0000 | |
changeset 1975 | e9bc96529849 |
parent 1967 | 3fe7ad2d40c0 |
permissions | -rw-r--r-- |
257
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
1 |
{% extends "soc/base.html" %} |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
2 |
{% comment %} |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
3 |
Licensed under the Apache License, Version 2.0 (the "License"); |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
4 |
you may not use this file except in compliance with the License. |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
5 |
You may obtain a copy of the License at |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
6 |
|
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
7 |
http://www.apache.org/licenses/LICENSE-2.0 |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
8 |
|
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
9 |
Unless required by applicable law or agreed to in writing, software |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
10 |
distributed under the License is distributed on an "AS IS" BASIS, |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
11 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
12 |
See the License for the specific language governing permissions and |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
13 |
limitations under the License. |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
14 |
{% endcomment %} |
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
15 |
{% load forms_helpers %} |
1967
3fe7ad2d40c0
Allow for a message to be displayed above the list view
Sverre Rabbelier <srabbelier@gmail.com>
parents:
1804
diff
changeset
|
16 |
|
3fe7ad2d40c0
Allow for a message to be displayed above the list view
Sverre Rabbelier <srabbelier@gmail.com>
parents:
1804
diff
changeset
|
17 |
|
257
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
18 |
{% block body %} |
1967
3fe7ad2d40c0
Allow for a message to be displayed above the list view
Sverre Rabbelier <srabbelier@gmail.com>
parents:
1804
diff
changeset
|
19 |
|
1975
e9bc96529849
Fix broken list_msg that caused 500 errors on many pages that contain list. Also make sure not to display list_msg if it is None.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
1967
diff
changeset
|
20 |
{% if list_msg %} |
1967
3fe7ad2d40c0
Allow for a message to be displayed above the list view
Sverre Rabbelier <srabbelier@gmail.com>
parents:
1804
diff
changeset
|
21 |
{{ list_msg|safe }} |
1975
e9bc96529849
Fix broken list_msg that caused 500 errors on many pages that contain list. Also make sure not to display list_msg if it is None.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
1967
diff
changeset
|
22 |
{% endif %} |
1967
3fe7ad2d40c0
Allow for a message to be displayed above the list view
Sverre Rabbelier <srabbelier@gmail.com>
parents:
1804
diff
changeset
|
23 |
|
1458
ec06d3ee73e4
Make it possible to display a message when there are no lists
Sverre Rabbelier <srabbelier@gmail.com>
parents:
625
diff
changeset
|
24 |
{% if list.empty %} |
ec06d3ee73e4
Make it possible to display a message when there are no lists
Sverre Rabbelier <srabbelier@gmail.com>
parents:
625
diff
changeset
|
25 |
{{ no_lists_msg }} |
ec06d3ee73e4
Make it possible to display a message when there are no lists
Sverre Rabbelier <srabbelier@gmail.com>
parents:
625
diff
changeset
|
26 |
{% endif %} |
1804
e151c2039a98
Keep the current list and row number
Sverre Rabbelier <srabbelier@gmail.com>
parents:
1458
diff
changeset
|
27 |
{% for list_number in list.lists %} |
257
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
28 |
<p> |
625
ec867361b5ba
Add missing dots in soc.logic.lists module. Change method names to comply with Style Guide. Make class variable protected by adding "_" to the name of variable. Update lists templates respectively (methods name change).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
539
diff
changeset
|
29 |
{% include list.nextList %} |
539
e30462354e26
Allow for multiple list objects
Sverre Rabbelier <srabbelier@gmail.com>
parents:
518
diff
changeset
|
30 |
</p> |
e30462354e26
Allow for multiple list objects
Sverre Rabbelier <srabbelier@gmail.com>
parents:
518
diff
changeset
|
31 |
{% endfor %} |
257
878f9ec9dd07
Add group templates that can be used by Sponsor, Organization, School, Club views. Right now only upcoming commit of Sponsor views is using it.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
32 |
{% endblock %} |