# HG changeset patch # User Pawel Solyga # Date 1224439214 0 # Node ID 76f130cc16b082d2db941ae9270de2182ab2982a # Parent 849aa913e9c89e8b2cad5a3cc5aafbcd440704f9 Add "View Sponsor Public Profile" to Sponsor Edit view template. Remove not needed

in home/public.html template. Add missing '$' at the end of some urls in site/map.py module. Patch by: Pawel Solyga Review by: to-be-reviewed diff -r 849aa913e9c8 -r 76f130cc16b0 app/soc/logic/site/map.py --- a/app/soc/logic/site/map.py Sun Oct 19 17:33:44 2008 +0000 +++ b/app/soc/logic/site/map.py Sun Oct 19 18:00:14 2008 +0000 @@ -206,7 +206,7 @@ # Sponsor Group public view sponsor_profile = page.Page( page.Url( - r'^sponsor/profile/%s' % path_link_name.LINKNAME_ARG_PATTERN, + r'^sponsor/profile/%s$' % path_link_name.LINKNAME_ARG_PATTERN, 'soc.views.sponsor.profile.public'), 'Sponsor Public Profile', parent=home) @@ -236,7 +236,7 @@ site_sponsor_edit = page.Page( page.Url( - r'^site/sponsor/profile/%s' % path_link_name.LINKNAME_ARG_PATTERN, + r'^site/sponsor/profile/%s$' % path_link_name.LINKNAME_ARG_PATTERN, 'soc.views.site.sponsor.profile.edit'), 'Site: Modify Existing Sponsor', short_name='Modify Site Sponsor', diff -r 849aa913e9c8 -r 76f130cc16b0 app/soc/templates/soc/home/public.html --- a/app/soc/templates/soc/home/public.html Sun Oct 19 17:33:44 2008 +0000 +++ b/app/soc/templates/soc/home/public.html Sun Oct 19 18:00:14 2008 +0000 @@ -55,7 +55,6 @@ {% block missing_doc %} This is the default home page can be edited via Settings. {% endblock %} -

{% endif %} {% if home_settings.feed_url %}

diff -r 849aa913e9c8 -r 76f130cc16b0 app/soc/templates/soc/site/sponsor/profile/edit.html --- a/app/soc/templates/soc/site/sponsor/profile/edit.html Sun Oct 19 17:33:44 2008 +0000 +++ b/app/soc/templates/soc/site/sponsor/profile/edit.html Sun Oct 19 18:00:14 2008 +0000 @@ -12,9 +12,13 @@ See the License for the specific language governing permissions and limitations under the License. {% endcomment %} - {% block submit_buttons %} - {{ block.super }} +{% block submit_buttons %} +{{ block.super }} - {% endblock %} +{% endblock %} +{% block body %} +{{ block.super }} +

View Sponsor Public Profile

+{% endblock %} \ No newline at end of file