# HG changeset patch # User Sverre Rabbelier # Date 1237589396 0 # Node ID 3fe7ad2d40c07e94f61f192c5b69feb7ac9bd977 # Parent fcf246b379a75c0ae8c505e4fe912842fd9cf726 Allow for a message to be displayed above the list view Patch by: Sverre Rabbelier diff -r fcf246b379a7 -r 3fe7ad2d40c0 app/soc/templates/soc/models/list.html --- 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 %} diff -r fcf246b379a7 -r 3fe7ad2d40c0 app/soc/views/models/base.py --- 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']