# HG changeset patch # User Sverre Rabbelier # Date 1239490643 0 # Node ID a1f1eaaf458b20529f1b634b8de3331eb1ea9f9b # Parent 2cbadb6efe9f69ec6edf4f1744d0f08064a0fba5 Use key.id_or_name in templates rather than key.name This is to allow for usage of auto-id's. Patch by: Sverre Rabbelier diff -r 2cbadb6efe9f -r a1f1eaaf458b app/soc/templates/soc/group_app/review.html --- a/app/soc/templates/soc/group_app/review.html Sat Apr 11 17:40:41 2009 +0000 +++ b/app/soc/templates/soc/group_app/review.html Sat Apr 11 22:57:23 2009 +0000 @@ -37,10 +37,10 @@ {% block buttons %} - - - - + + + + {% endblock buttons %} diff -r 2cbadb6efe9f -r a1f1eaaf458b app/soc/templates/soc/models/admin.html --- a/app/soc/templates/soc/models/admin.html Sat Apr 11 17:40:41 2009 +0000 +++ b/app/soc/templates/soc/models/admin.html Sat Apr 11 22:57:23 2009 +0000 @@ -25,7 +25,7 @@   - + diff -r 2cbadb6efe9f -r a1f1eaaf458b app/soc/templates/soc/models/edit.html --- a/app/soc/templates/soc/models/edit.html Sat Apr 11 17:40:41 2009 +0000 +++ b/app/soc/templates/soc/models/edit.html Sat Apr 11 22:57:23 2009 +0000 @@ -17,7 +17,7 @@ {% block header_title %} {{ page_name }} {% if entity %} - {% if entity.name %}{{ entity.name }} {% endif %}(public view) {% endif %} {% endblock %} diff -r 2cbadb6efe9f -r a1f1eaaf458b app/soc/templates/soc/org_app/review.html --- a/app/soc/templates/soc/org_app/review.html Sat Apr 11 17:40:41 2009 +0000 +++ b/app/soc/templates/soc/org_app/review.html Sat Apr 11 22:57:23 2009 +0000 @@ -33,7 +33,7 @@ {% endblock %} {% block buttons %} - - + + {{ block.super }} {% endblock buttons %} diff -r 2cbadb6efe9f -r a1f1eaaf458b app/soc/templates/soc/organization/public.html --- a/app/soc/templates/soc/organization/public.html Sat Apr 11 17:40:41 2009 +0000 +++ b/app/soc/templates/soc/organization/public.html Sat Apr 11 22:57:23 2009 +0000 @@ -17,7 +17,7 @@ {% block header_title %} {{ page_name }} for {{ entity.name }} {% if entity.home %} -(Home Page) +(Home Page) {% endif %} {% endblock %} diff -r 2cbadb6efe9f -r a1f1eaaf458b app/soc/templates/soc/presence/home.html --- a/app/soc/templates/soc/presence/home.html Sat Apr 11 17:40:41 2009 +0000 +++ b/app/soc/templates/soc/presence/home.html Sat Apr 11 22:57:23 2009 +0000 @@ -52,7 +52,7 @@ {{ home_document.content|safe }} {% else %} {% block missing_doc %} -This is the default home page, it can be edited via Edit {{ entity_type }} Settings.
+This is the default home page, it can be edited via Edit {{ entity_type }} Settings.
{% endblock %} {% endif %} {% if entity.feed_url %} diff -r 2cbadb6efe9f -r a1f1eaaf458b app/soc/templates/soc/presence/public.html --- a/app/soc/templates/soc/presence/public.html Sat Apr 11 17:40:41 2009 +0000 +++ b/app/soc/templates/soc/presence/public.html Sat Apr 11 22:57:23 2009 +0000 @@ -23,11 +23,11 @@ {% readonly_field_as_table_row entity.fields.link_id.label entity.link_id %} {% if entity.home %} - {% readonly_field_as_table_row entity.fields.home.label entity.home.key.name %} + {% readonly_field_as_table_row entity.fields.home.label entity.home.key.id_or_name %} {% endif %} {% readonly_url_field_as_table_row entity.fields.feed_url.label entity.feed_url %} {% if entity.tos %} - {% readonly_field_as_table_row entity.fields.tos.label entity.tos.key.name %} + {% readonly_field_as_table_row entity.fields.tos.label entity.tos.key.id_or_name %} {% endif %}
diff -r 2cbadb6efe9f -r a1f1eaaf458b app/soc/templates/soc/site/public.html --- a/app/soc/templates/soc/site/public.html Sat Apr 11 17:40:41 2009 +0000 +++ b/app/soc/templates/soc/site/public.html Sat Apr 11 22:57:23 2009 +0000 @@ -23,11 +23,11 @@ {% readonly_field_as_table_row entity.fields.link_id.label entity.link_id %} {% if entity.home %} - {% readonly_field_as_table_row entity.fields.home.label entity.home.key.name %} + {% readonly_field_as_table_row entity.fields.home.label entity.home.key.id_or_name %} {% endif %} {% readonly_field_as_table_row entity.fields.feed_url.label entity.feed_url %} {% if entity.tos %} - {% readonly_field_as_table_row entity.fields.tos.label entity.tos.key.name %} + {% readonly_field_as_table_row entity.fields.tos.label entity.tos.key.id_or_name %} {% endif %} {% readonly_field_as_table_row entity.fields.ga_tracking_num.label entity.ga_tracking_num %} {% readonly_field_as_table_row entity.fields.gmaps_api_key.label entity.gmaps_api_key %}