# HG changeset patch # User Sverre Rabbelier # Date 1227396846 0 # Node ID b7b77b4c96129208f794a362e8e112cb165af046 # Parent 1b37588c49220c14144cffbecee20c9dd51bac9b Fixed pages for missing home page (document) links Patch by: Sverre Rabbelier diff -r 1b37588c4922 -r b7b77b4c9612 app/soc/templates/soc/home/public.html --- 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 @@
Last updated on: {{ home_document.modified }}
{% 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 Edit Site Settings.
{% endblock %} {% endif %} {% if entity.feed_url %} diff -r 1b37588c4922 -r b7b77b4c9612 app/soc/templates/soc/site/error.html --- 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 Home Settings.
+This is the default home page, which can be edited via Edit Site Settings.
{% endblock %} diff -r 1b37588c4922 -r b7b77b4c9612 app/soc/views/models/site.py --- 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$',