Fix up the URLs mapping to soc.views.user.profile.edit() and make the site base
authorTodd Larsen <tlarsen@google.com>
Wed, 20 Aug 2008 00:04:42 +0000
changeset 86 fd34dd071e5e
parent 85 426b4ca2a72a
child 87 7ccc026f5793
Fix up the URLs mapping to soc.views.user.profile.edit() and make the site base template (mostly a mock-up) point to /user/profile instead of the old /usr/linkname/profile from the static mock-up.
app/soc/templates/soc/base.html
app/urls.py
--- a/app/soc/templates/soc/base.html	Wed Aug 20 00:02:49 2008 +0000
+++ b/app/soc/templates/soc/base.html	Wed Aug 20 00:04:42 2008 +0000
@@ -68,7 +68,7 @@
 <a class="selected" href="/">Google Open Source Programs</a>
       <ul>
        <li>
-<a href="/user/linkname/profile">User (Sign In)</a>
+<a href="/user/profile">User (Sign In)</a>
    <span title=" No Profile or Roles sidebar menu items until user signs in " class="popup">
 <small>*</small>
    </span>
--- a/app/urls.py	Wed Aug 20 00:02:49 2008 +0000
+++ b/app/urls.py	Wed Aug 20 00:04:42 2008 +0000
@@ -31,8 +31,9 @@
     (r'^user/roles/(?P<linkname>[_0-9a-z]+)$',
      'soc.views.user.roles.dashboard'),
 
-    (r'^user/profile$','soc.views.user.profile'),
-    (r'^user/profile/(?P<linkname>[_0-9a-z]+)$','soc.views.user.profile'),
+    (r'^user/profile$', 'soc.views.user.profile.edit'),
+    (r'^user/profile/(?P<linkname>[_0-9a-z]+)$',
+     'soc.views.user.profile.edit'),
 
     (r'^org/profile/(?P<program>ghop[_0-9a-z]+)/(?P<linkname>[_0-9a-z]+)/$',
      'soc.views.person.profile.edit',