Generate the 'edit settings' link dynamically
We used to point to '/site/edit', which is rather lame for a generic
presence template (especially since site has it's own template).
Patch by: Sverre Rabbelier
--- a/app/soc/templates/soc/presence/home.html Fri Jan 23 15:29:42 2009 +0000
+++ b/app/soc/templates/soc/presence/home.html Fri Jan 23 15:31:13 2009 +0000
@@ -53,7 +53,7 @@
{{ home_document.content|safe }}
{% else %}
{% block missing_doc %}
-This is the default home page, it can be edited via <a href="/site/edit">Edit Site Settings</a>.<br />
+This is the default home page, it can be edited via <a href="/{{ entity_type|lower }}/edit/{{ entity.key.name }}">Edit Site Settings</a>.<br />
{% endblock %}
{% endif %}
{% if entity.feed_url %}