Allow for a message to be displayed above the list view
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 20 Mar 2009 22:49:56 +0000
changeset 1967 3fe7ad2d40c0
parent 1966 fcf246b379a7
child 1968 23fa129b7cad
Allow for a message to be displayed above the list view Patch by: Sverre Rabbelier
app/soc/templates/soc/models/list.html
app/soc/views/models/base.py
--- a/app/soc/templates/soc/models/list.html	Fri Mar 20 22:49:18 2009 +0000
+++ b/app/soc/templates/soc/models/list.html	Fri Mar 20 22:49:56 2009 +0000
@@ -13,7 +13,12 @@
 limitations under the License.
 {% endcomment %}
 {% load forms_helpers %}
+
+
 {% block body %}
+
+{{ list_msg|safe }}
+
 {% if list.empty %}
 {{ no_lists_msg }}
 {% endif %}
--- a/app/soc/views/models/base.py	Fri Mar 20 22:49:18 2009 +0000
+++ b/app/soc/views/models/base.py	Fri Mar 20 22:49:56 2009 +0000
@@ -560,6 +560,7 @@
 
     context['entity_type'] = params['name']
     context['entity_type_plural'] = params['name_plural']
+    context['list_msg'] = params['list_msg']
     context['no_lists_msg'] = params['no_lists_msg']
 
     template = params['list_template']