Allow for a message to be displayed above the list view
Patch by: Sverre Rabbelier
--- 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']