--- a/app/soc/templates/soc/home/public.html Sat Nov 22 23:23:37 2008 +0000
+++ b/app/soc/templates/soc/home/public.html Sat Nov 22 23:34:06 2008 +0000
@@ -53,7 +53,7 @@
<div id="lastmodified">Last updated on: {{ home_document.modified }}</div>
{% else %}
{% block missing_doc %}
-This is the default home page can be edited via Settings.
+This is the default home page can be edited via <a href="/site/settings/edit">Edit Site Settings</a>.<br />
{% endblock %}
{% endif %}
{% if entity.feed_url %}
--- a/app/soc/templates/soc/site/error.html Sat Nov 22 23:23:37 2008 +0000
+++ b/app/soc/templates/soc/site/error.html Sat Nov 22 23:34:06 2008 +0000
@@ -22,5 +22,5 @@
{% endblock %}
{% block body %}
-This is the default home page, which can be edited via the <a href="/home/settings/create">Home Settings</a>.<br />
+This is the default home page, which can be edited via <a href="/site/settings/edit">Edit Site Settings</a>.<br />
{% endblock %}
--- a/app/soc/views/models/site.py Sat Nov 22 23:23:37 2008 +0000
+++ b/app/soc/views/models/site.py Sat Nov 22 23:34:06 2008 +0000
@@ -149,8 +149,10 @@
"""See base.View.getDjangoURLPatterns().
"""
+ page_name = "Home Page"
patterns = super(View, self).getDjangoURLPatterns()
- patterns += [(r'^$','soc.views.models.site.main_public')]
+ patterns += [(r'^$','soc.views.models.site.main_public',
+ {'page_name': page_name}, page_name)]
page_name = "Edit Site Settings"
patterns += [(r'^' + self._params['url_name'] + '/edit$',