--- a/app/soc/templates/soc/presence/home.html Wed Feb 25 20:41:28 2009 +0000
+++ b/app/soc/templates/soc/presence/home.html Wed Feb 25 20:42:16 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 <a href="/{{ entity_type|lower }}/edit/{{ entity.key.name }}">Edit {{ entity_type }} Settings</a>.<br />
+This is the default home page, it can be edited via <a href="/{{ entity_type_url|lower }}/edit/{{ entity.key.name }}">Edit {{ entity_type }} Settings</a>.<br />
{% endblock %}
{% endif %}
{% if entity.feed_url %}
--- a/app/soc/views/models/base.py Wed Feb 25 20:41:28 2009 +0000
+++ b/app/soc/views/models/base.py Wed Feb 25 20:42:16 2009 +0000
@@ -120,6 +120,7 @@
context['entity'] = entity
context['entity_type'] = params['name']
+ context['entity_type_url'] = params['url_name']
template = params['public_template']